rpath in setup.py?

Gerhard Häring gh at ghaering.de
Thu Oct 2 13:29:02 EDT 2003


Tore Ferner wrote:
> [...] How do I make python use -rpath against such directories, for
> example by changing setup.py? [...]

Here's a snippet of a setup.py from a project I'm involved in:

ext_modules = [Extension(
     ...
     runtime_library_dirs = pypgsql_rt_dirs,
     ...
     )],

runtime_library_dirs is a list of directories, just like library_dirs. 
And I'd think it makes sense that both refer to the same list ;)

In other words, library_dirs ends up as -L option, whereas 
runtime_library_dirs ends up as -rpath option.

HTH,

-- Gerhard





More information about the Python-list mailing list