[Python-Dev] Build extensions for windows python 2.4 what are the compiler rules?

Barry Scott barry at barrys-emacs.org
Fri Dec 24 01:17:49 CET 2004


On Dec 23, 2004, at 23:12, Martin v. Löwis wrote:

> Barry Scott wrote:
>> It seems that I can build extensions with msvc 6.0 that work with the 
>> python 2.4 windows
>> binary kit.
>> Is this safe?
>
> No, it isn't. This emerges as a Python 2.4 FAQ.
>
>> I recall warning a while ago about mixing msvc 6.0 and msvc 7.1 
>> runtime DLL's. Is this
>> an issue with python 2.4?
>
> Yes, it is.
>
>> I'm also surprised that the python 2.4 source kit only mentions MSVC 
>> 6.0 and not the compiler that you actually built python 2.4 with.
>
> Why do you say that? PCbuild/readme.txt starts with

I recursive grep'ed and missed this ref. However I did read this in 
README.TXT:

 > Building on non-UNIX systems
 > ----------------------------

 > For Windows (2000/NT/ME/98/95), assuming you have MS VC++ 6.0, the
 > project files are in PCbuild, the workspace is pcbuild.dsw.  See
 > PCbuild\readme.txt for detailed instructions.

Which says that PCbuild/readme.txt is about VC++ 6.0

> Building Python using VC++ 7.1
> -------------------------------------
> This directory is used to build Python for Win32 platforms, e.g. 
> Windows
> 95, 98 and NT.  It requires Microsoft Visual C++ 7.1
> (a.k.a. Visual Studio .NET 2003).
> (For other Windows platforms and compilers, see ../PC/readme.txt.)
>
> Regards,
> Martin

Barry



More information about the Python-Dev mailing list