rpath alike feature for python scripts
dieter at handshake.de
Thu Jul 31 07:36:22 CEST 2014
dieter <dieter at handshake.de> writes:
> Olaf Hering <olaf at aepfle.de> writes:
>> On Mon, Jul 28, Albert-Jan Roskam wrote:
>>> does this help: https://nixos.org/patchelf.html. It is not specific to Python, though.
>> No, this does not help because its not about patching the result.
>> The questions is how to obtain the value with should be patched into the
> The primary ways to interact with Python's import mechanism
> are "sys.path" and the envvar "PYTHONPATH" (which corresponds
> to the envvar "LD_LIBRARY_PATH").
You may also have a look at the "*.pth" feature.
It allows package installers to influence the way how "sys.path" is
set up. A main example is "easy-install.pth" (used for egg installation).
I remember to have seen a documentation - however, I no longer remember where.
More information about the Python-list