Windows versions of Python---pros and cons?

Gerhard Häring gerhard.haering at gmx.de
Wed Jun 19 18:58:00 EDT 2002


* Trent Mick <trentm at ActiveState.com> [2002-06-19 15:46 -0700]:
> My understanding is that for C extensions to work they must be built
> with the same compiler as that used to build the Python with which they
> will run. (I may be wrong. Someone please correct me if I am.)

You are wrong. As long as you link to the python{major}{minor}.dll you
are binary compatible, no matter which compiler you use. It's just a
matter of providing an additional compiler option to distutils, like in:

    python setup.py build --compiler=mingw32

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))





More information about the Python-list mailing list