[Distutils] build python2.5 extension on windows64 with MSVC 8 - _MSVCCompiler__root

Thomas Heller theller at ctypes.org
Fri May 18 20:51:09 CEST 2007


Mowry, Peter schrieb:

You cannot use MSVC8 anyway because it links with the wrong C runtime library;
except if you compile thw whole Python with it.

> 
> I did some web searching and read that I can:
> os.environ['DISTUTILS_USE_SDK'] = "1"
> os.environ['MSSdk'] = "1"
> 
> http://docs.python.org/dist/module-distutils.msvccompiler.html


> 
> Unfortunately it sounds like I might need to use the "Platform SDK" to
> compile even my very basic python extension module (just loads a dll and
> calls one method) (Windows64, python2.5) :-(


So what?

As an alternative you might try out ctypes, which I just released for win64.

Thomas



More information about the Distutils-SIG mailing list