overriding /usr/lib and /usr/include directories

Donn Cave donn at oz.net
Sat Jun 2 01:01:57 EDT 2001


Quoth "Bruce Edge" <bedge at troikanetworks.com>:
| I'm building python for an embedded environment, and it's apparently
| picking up the library names from /usr/lib. How do I tell it where to look
| for shared libs, like libreadline.so.4.2 for example?
|
| My host has /usr/lib/libreadline.so.4.1, while in my target env my
| LD_LIBRARY_PATH points to a dir containing libreadline.so.4.2, and the
| python readline module  as it's looking for the version it found in
| /usr/lib.

Sounds like setup.py to me, though I haven't thought very hard 
about it since you don't say what version of Python or provide
much of any other details about what you're doing.  Anyway, in
2.1, setup.py builds the dynamically loaded modules, and it has
/usr/lib hard-coded.  If you want something else, you can just
modify setup.py accordingly.  I believe it's fairly obvious;
you may have to dive way down into the distutils layer beneath
setup.py for some things, but /usr/lib should be right there
in setup.py.

	Donn Cave, donn at oz.net



More information about the Python-list mailing list