Hi,
I tried to build the "ctypes-0.9.6" packages from
source with Microsoft Visual Studio 8 (2005). I
realized that in module "distutils" of Python 2.4.1
both VC7 and VC8 compilers are not supported at all
(only VC6).
I took a glance at distutils at Python 2.4.2 but also
there no VC8 is supported.
I tried to figure out where I should extend the
compiler detection, but the whole file
"msvccompiler.py" seems to me like a big hack. I've
wrote some code, to get VC8 working on my machine (set
right pathes to Include- and Lib-Directories and to the
binaries), but I don't think it's redistributable.
What do you think of detecting the right MS-Compiler
like this:
def detectCompiler() :
detectVC6()
detectVC7()
detectVC8()
and hiding the code for each particular version of VC
in a separate function. I don't think MS is following a
streight upwards compatibility strategy.
Also ther should be a way, to select on compiler, when
multiple compilers are detected. I saw the
--compiler=whatever
switch, but did not found any documentation on it.
I've got both versions (VC7 and VC8) installed on my
machine. So I can try out different detection routines
if you want.
Another problem with VC8 is cross-compiling, since ther
e are different library-directories for different
platforms (AMD64, x86, Itanium, Win32, ...). Also here
I see big deficits in the distutil-module at the moment.
Best regards
David
|