Modules failing to add runtime library path info at link time

cjblaine cjblaine at gmail.com
Tue Feb 2 05:04:56 CET 2010


On Feb 1, 8:00 pm, Christian Heimes <li... at cheimes.de> wrote:
> cjblaine wrote:
> > Where/how can I configure the appropriate portion of our Python
> > install to do 100% the right thing instead of just 50% (-L)?
>
> Python's distutils doesn't alter the library search path unless you tell
> it explicitly.
>
> > A specific example -- note the -L and lack of -R (Solaris build):
>
> > % python setup.py build
> > ....
> > gcc -shared build/temp.solaris-2.10-sun4u-2.6/pgmodule.o -L/afs/rcf/
> > apps/catchall/lib -lpq -o build/lib.solaris-2.10-sun4u-2.6/_pg.so
> > %
>
> The Extension() class supports the rpath argument. Simply add
> rpath="/path/to/library/dir" and you are good.
>
> Christian

Thanks for the reply.

So, python setup.py build rpath="/whatever/lib" ?



More information about the Python-list mailing list