[Patches] [Patch #100938] [Draft] libpython as shared library (.so) on Linux

noreply@sourceforge.net noreply@sourceforge.net
Wed, 1 Nov 2000 03:32:33 -0800


Patch #100938 has been updated. 

Project: python
Category: None
Status: Open
Summary: [Draft] libpython as shared library (.so) on Linux

Follow-Ups:

Date: 2000-Jul-19 14:10
By: flight

Comment:
This is what it used in product to build libpython as shared library(.so) for Debian.

Note: This patch is not ready for inclusion in the upstream Python distribution. Anyway, I think this might be a start. The Python 1.5 executable in Debian GNU/Linux is built against a shared libpython1.5.so since April 1999, and I haven't yet heard about any problems.

Using a shared library should have an advantage if you're running multiple instances of Python (be it standalone interpreter or embedded applications).

-------------------------------------------------------

Date: 2000-Aug-15 10:52
By: tim_one

Comment:
Assigned to Barry because he's a Linux weenie.  Barry, if you think there's something here that should go into 2.0, please pursue it now, else change the status to Postponed.
-------------------------------------------------------

Date: 2000-Aug-16 00:40
By: moshez

Comment:
I suggest we postpone it. It isn't really complete (only works on real distributions <wink>), and the complete solution should work on all unices. If Tcl/Perl can do it, there is no reason Python can't -- and a half hearted solution isn't that good. flight, you should use this
for the Python in woody in the mean time -- I doubt woody
will be stable before Python 2.1 comes out, so 2.1 sounds
like a good timeframe to do it.
-------------------------------------------------------

Date: 2000-Aug-23 09:26
By: jhylton

Comment:
In the absence of anyone arguing for inclusion of this patch and a one-week idle period, it is postponed.
-------------------------------------------------------

Date: 2000-Oct-26 14:13
By: gvanrossum

Comment:
Let's give this to Jeremy instead, because he seems to know more about build issues. Jeremy, it would be good to look into getting this to work with your RPM suite. Flight's argument (has been used without complaints in Debian Python 1.5.2 since 1999) is good.
-------------------------------------------------------

Date: 2000-Nov-01 03:32
By: moshez

Comment:
I've had a look at the patch, and it seems it has
two orthogonal parts. One is adding the infrastructure
for compiling another version for the Python library, which can be more or less integrated as-is, and one is hard-coding the particular way, in Linux, of building shared objects. Since we discover how to build shared objects in the configure script anyway (otherwise we could not have built modules as shared objects), we should embed that information there, not the Linux flags.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=100938&group_id=5470