The bug tracker for setuptools 0.7 or higher is on BitBucket

 

Issue43

Title [PATCH] add force_shared Library option to create shared lib even with use_stubs=False
Priority feature Status chatting
Superseder Nosy List pje, vajda, wwaites
Assigned To pje Keywords

Created on 2008-09-11.05:43:18 by vajda, last changed 2010-01-19.23:13:05 by wwaites.

Files
File name Uploaded Type Edit Remove
patch.43.0.6c11 vajda, 2009-10-27.21:18:25 application/octet-stream
patch.st vajda, 2008-09-11.05:43:17 text/plain
Messages
msg485 (view) Author: wwaites Date: 2010-01-19.23:13:04
This is needed for python bindings for the 4store triple store (http://github.com/wwaites/py4s)

Because 4store doesn't build a client library, the setup.py makes such a (shared) library and the actual bindings use ctypes. Works very well on e.g. OSX. Not so easy to install under Linux because setuptools insists on making a static archive.
msg440 (view) Author: vajda Date: 2009-10-27.21:18:25
updated patch to reflect changes in recent 0.6c11 release.
msg162 (view) Author: vajda Date: 2008-09-11.05:43:17
setuptools is growing the capability to build regular shared libraries
(as opposed to python extensions). JCC
(http://svn.osafoundation.org/pylucene/trunk/jcc/jcc) uses this
capability to build the JCC runtime into a regular shared library shared
by all python extensions it builds and by programs embedding python
(such as a Java VM when running JCC-built eggs from Apache Tomcat).

This bug is about adding another option to the setuptools Library class
called force_shared which forces setuptools to create a shared library
from a Library instance even though the dl module may not be present to
generate stubs. This is important on Linux. Note that using this flag
then implies that the library itself is responsible for calling        
dlopen(buf, RTLD_NOW | RTLD_GLOBAL) on the relevant libpython.so before
initializing the python runtime is initialized.

A patch against the setuptools 0.6 branch svn is attached.
The idea for this patch came from a conversation on IRC:
http://chandlerproject.org/script/getIrcTranscript.cgi?channel=chandler&date=20080910&startTime=1729
History
Date User Action Args
2010-01-19 23:13:05wwaitessetnosy: + wwaites
messages: + msg485
2009-10-27 21:18:26vajdasetfiles: + patch.43.0.6c11
status: unread -> chatting
messages: + msg440
2008-09-11 05:48:53vajdasettitle: add force_shared Library option to create shared lib even with use_stubs=False -> [PATCH] add force_shared Library option to create shared lib even with use_stubs=False
2008-09-11 05:43:18vajdacreate