Compiling cx_Oracle and LD_LIBRARY_PATH

Gerhard Häring gh at ghaering.de
Sat Jan 21 17:22:49 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian Cole wrote:
> I can compile and install cx_Oracle fine by following the manta:
> export ORACLE_HOME=...
> python setup.py install
> export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> python
> 
>>>>import cx_Oracle
> 
> 
> My issue is the LD_LIBRARY_PATH. Is there a way to compile cx_Oracle,
> or any Python extension for that matter so that it's not required to
> set LD_LIBRARY_PATH? Is there a way I can make distutils do this for
> me?

Set runtime_library_dirs to a list of library directories you want to
search at runtime in your setup.py.

Check
http://cvs.sourceforge.net/viewcvs.py/pypgsql/pypgsql/setup.py?rev=1.25&view=auto
for an example.

HTH,

- -- Gerhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD0rQ5dIO4ozGCH14RAguJAJ9KW7g9pTP/co63Jn5DNF+GN4IMvgCeOYic
a3yQm+oOdsiepvICBLQFt2A=
=KeLY
-----END PGP SIGNATURE-----



More information about the Python-list mailing list