Re: How to package a Python module with shared libraries ?

2010-04-26 Thread Josselin Mouette
Le dimanche 25 avril 2010 à 19:37 +0100, Floris Bruynooghe a écrit : > You could try setting RUNPATH/RPATH into the extension module. If > it's using distutils you can use --rpath to setup.py build_ext, see > the --help of the build_ext sub-command. Unfortunately that won’t work, since the rpath

Re: How to package a Python module with shared libraries ?

2010-04-26 Thread Floris Bruynooghe
On Mon, Apr 26, 2010 at 09:44:52AM +0200, Josselin Mouette wrote: > Le dimanche 25 avril 2010 à 19:37 +0100, Floris Bruynooghe a écrit : > > You could try setting RUNPATH/RPATH into the extension module. If > > it's using distutils you can use --rpath to setup.py build_ext, see > > the --help of t

Re: How to package a Python module with shared libraries ?

2010-04-26 Thread Sylvestre Ledru
Le lundi 26 avril 2010 à 00:14 +0200, Jakub Wilk a écrit : > * Sylvestre Ledru , 2010-04-25, 23:33: > >> > * All Scilab libraries are stored in /usr/lib/scilab/ > >> > > >> > * cdll.LoadLibrary("/usr/lib/scilab/libscilab.so") will fails > >> > since /usr/lib/scilab is not in the search path for lib

Re: How to package a Python module with shared libraries ?

2010-04-26 Thread Josselin Mouette
Le lundi 26 avril 2010 à 13:26 +0200, Sylvestre Ledru a écrit : > Indeed. I rebuilt Scilab with the rpath and it works. Thanks for the > tip! > I wonder what is the best solution: > * move all content of /usr/lib/scilab/ to /usr/lib/ (it is more than 70 > shared lib). But I would have to do that up

Re: How to package a Python module with shared libraries ?

2010-04-26 Thread Josselin Mouette
Le lundi 26 avril 2010 à 11:04 +0100, Floris Bruynooghe a écrit : > On Mon, Apr 26, 2010 at 09:44:52AM +0200, Josselin Mouette wrote: > > Unfortunately that won’t work, since the rpath used by dlopen() is the > > one provided by the binary, not the one for the module being loaded. > > You are corr

Re: Is it worth back porting PEP 3147 to Python < 3.2?

2010-04-26 Thread Nicolas Chauvat
Hi Barry, Nice to see someone of the core python team taking part in distribution development. On Thu, Apr 22, 2010 at 01:52:11PM -0400, Barry Warsaw wrote: > How much of the transition testing is automated? It would be very interesting > for example, to have a test framework that could run any

Re: Is it worth back porting PEP 3147 to Python < 3.2?

2010-04-26 Thread Barry Warsaw
On Apr 26, 2010, at 06:35 PM, Nicolas Chauvat wrote: >Nice to see someone of the core python team taking part in >distribution development. Well, it's official now - I've joined the Ubuntu platform team at Canonical, so I'm very keen on helping to solve problems with Python on Debian and Ubuntu.