How to Build Python 2.3.3 C/C++ Extensions in Windows Using Mingw32
Roger Binns
rogerb at rogerbinns.com
Thu May 20 17:39:39 EDT 2004
C. Barnes wrote:
> 5. Patch distutils. Locate
> \python\lib\distutils\msvccompiler.py, open
> it, and find the following lines (around line 211):
>
> if len (self.__paths) == 0:
> raise DistutilsPlatformError, \
> ("Python was built with version %s
> of Visual Studio, "
> "and extensions need to be built
> with the same "
> "version of the compiler, but it
> isn't installed." % self.__version)
>
> Delete these.
You don't need that. Do this instead:
python setup.py build --compiler=mingw32 bdist_wininst
Roger
More information about the Python-list
mailing list