Python port to Swiss Ephemeris work with 2.3?

Tim Peters tim.one at comcast.net
Fri Sep 5 23:28:55 EDT 2003


[John Roth]
>> You need to recompile using the same compiler that Python was
>> compiled with (I believe that's VC 6 for the Windows version.)
>> Extension modules ***always*** need to be recompiled for major
>> Python releases.

[Geoff Gerrietts]
> Is that really true under Windows?

Yes, and also for minor releases (the j in i.j.k).

> It's not true on Unix releases:

Also true.

> Guido takes exquisite care to make sure that Python releases are
> binary-compatible. Is it possible that moving the file around somehow
> might make Python sufficiently aware?

Nope.  On Windows, the core DLL is named differently for each minor release
(e.g., Python22.dll for all 2.2.k releases, but Python23.dll for all 2.3.k
releases), and extension modules have the name of the DLL they require
embedded in them.  This makes it very easy to have multiple versions of
Python installed on Windows, which is harder than it is on Linux because the
core DLLs usually end up in the same magical (to Windows) "system
directory".  OTOH, it can be a PITA for people using lots of extension
modules on Windows.

> Geoff Gerrietts <geoff at gerrietts dot net>
> -rw-rw-rw-:         permissions of the beast

LOL!






More information about the Python-list mailing list