Hi,

Phillip J. Eby:
> >So why don't you simply link the Python extension and the library
> >to one single .so file?
> 
> Because there are a half-dozen Python extensions in the project sharing the 
> library.  Hence, the need for a "shared library".  :)
> 
So put them all into one .so file and import the required parts from
the modules you want them in.

Anyway, ELF libraries do have an rpath embedded in them. It *is*
possible to hotpatch that to point at wherever the shared library ends
up being installed.

Debian has a package "chrpath" with a tool "chrpath" (what a surprise ;-)
which can do that.

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
"I daresay," said Granny, pushing the Fool aside and stepping over a
writhing taproot. "If anyone locked *me* in a dungeon, there'd be screams."
                -- Terry Pratchett (Wyrd Sisters)

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to