Python extension compatibility

Scott David Daniels Scott.Daniels at Acm.Org
Thu Nov 4 14:34:00 EST 2004


Philippe C. Martin wrote:
> Since pycsc does not use any brand new Python functionality, are the binaries 
> be compatible with earlier versions of Python ? down to which ?
Binaries are compatible down to major.minor versions.
That is 2.3.4 works with 2.3.1 and so on.  Nothing you build with 2.4
will work (pass the initial setup test) across major.minor versions.

In addition to Python sometimes making incompatible changes, Microsoft
changes the runtime library interface (and in some cases even the C
function call interface for compiled code) for each version of their
compiler.  Since python 2.3 down (to at least 2.1) uses VC 6, your 2.4
stuff (compiled with 7.1) wouldn't work even if Python didn't try to
prevent you.

You haven't specified what version of Windows you are using, nor what
version of gcc you tried.  I get no crash running gcc 3.2.3's pexports
from on winscard.dll on Win2K Pro SP 5.  I can use that gcc with 2.3
to build extensions.  If you need help either getting that to work, or
simply want an email of the pexports output, drop me an e-mail to let
me know.

-Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list