Re: [Distutils] obtaining easy_install prefix in setup.py

2009-11-19 Thread Christophe Pradal
Pavol Juhas a écrit : ... Anybody else out there with a need to deploy a shared C library with a Python package? Yes. To deploy Python libraries with extension modules, or even shared libs on different OS (Linux, Mac and Windows) we have implemented OpenAlea.Deploy as an extension of

Re: [Distutils] obtaining easy_install prefix in setup.py

2009-11-19 Thread P.J. Eby
At 12:59 AM 11/19/2009 -0500, Pavol Juhas wrote: As PJE mentioned, it is indeed possible to walk the stack trace and rip out the original sys.argv (and its '--prefix' element) from the easy_install main. Technically, I meant it's possible to walk back until you find a 'self' that's a

[Distutils] obtaining easy_install prefix in setup.py

2009-11-18 Thread Pavol Juhas
Hello, I searched and read the recent discussions on the distutils-sig list and I hope someone can help me with the following problem. Is there a way to recover the prefix value inside pkgfoo/setup.py, when it is installed as easy_install --prefix=value pkgfoo (pkgfoo is a directory

Re: [Distutils] obtaining easy_install prefix in setup.py

2009-11-18 Thread P.J. Eby
At 02:59 PM 11/18/2009 -0500, Pavol Juhas wrote: Hello, I searched and read the recent discussions on the distutils-sig list and I hope someone can help me with the following problem. Is there a way to recover the prefix value inside pkgfoo/setup.py, when it is installed as easy_install

Re: [Distutils] obtaining easy_install prefix in setup.py

2009-11-18 Thread Pavol Juhas
On Wed, Nov 18, 2009 at 07:45:34PM -0500, David Lyon wrote: ... Is this only for the linux/mac version? I tried the windows version of diffpy and it uses a nsis installer and that all seemed to work fine on my test machine. Hi David, The shared C++ library is necessary for new packages that

Re: [Distutils] obtaining easy_install prefix in setup.py

2009-11-18 Thread David Cournapeau
Pavol Juhas wrote: easy_install already creates its own distribution object before sourcing pkgfoo/setup.py, in addition setup.py is executed in a sandbox with mangled sys.argv. At least for the Distribution class, what you can do is to detect whether you are run under