[Python-Dev] versioned .so files for Python 3.2

Barry Warsaw barry at python.org
Tue Jul 27 23:23:15 CEST 2010


On Jul 26, 2010, at 10:53 PM, Ralf Schmitt wrote:

>Some of the things that need to be adapted are e.g. Makefiles
>(basically anything that assumes modules have a certain name), all of
>the freezers (cxFreeze, py2exe, ...). The biggest problem probably
>will be that an import will load the wrong module or no module at all.
>I'm just speculating here...

I took a look at cx_freeze - it doesn't support Python 3.2 yet afaict (the
build fails but it may be shallow).  I'm going to look at py2exe as soon as I
can get a Windows VM up and running.  Since import is (usually) handled by the
built-in dynload_shlib.c code it should generally Just Work I think, unless
some application installs custom import hooks.

In any case, I think this will be a fairly standard and probably simple,
porting effort, which goes along with supporting any new major release.

>> "Change is bad" isn't a constructive argument. ;)
>
>Did I make that argument?

Apologies.

>> That's fine, but it's not the way Debian/Ubuntu works today.  PEP
>> 3149 adoption will definitely remove significant complication for
>> deploying multiple Python versions at the same time on those systems.
>
>You're just moving that complication into python.

It's a much different level and scope of complexity though.  For Python, it's
pretty simple: look for an additional .so file name pattern which gets baked
into Python at compile time.  For that, you're able to remove a huge amount of
complexity on Debian/Ubuntu by removing the need to manage multiple directory
trees and symlinks between files in those trees.  The tools that manage them
(i.e. handle package installs and removals) also get much simpler.  I think
it's a worthwhile trade-off.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100727/59d801b0/attachment-0001.pgp>


More information about the Python-Dev mailing list