Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75403

Re: rpath alike feature for python scripts

From dieter <dieter@handshake.de>
Subject Re: rpath alike feature for python scripts
Date 2014-07-31 07:36 +0200
References (1 earlier) <87ha24mzzo.fsf@handshake.de> <20140728075740.GA17585@aepfle.de> <1406577605.33116.YahooMailNeo@web163806.mail.gq1.yahoo.com> <20140729072759.GA17626@aepfle.de> <87lhrbs8ed.fsf@handshake.de>
Newsgroups comp.lang.python
Message-ID <mailman.12457.1406784995.18130.python-list@python.org> (permalink)

Show all headers | View raw


dieter <dieter@handshake.de> writes:

> Olaf Hering <olaf@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
>> result.
> ...
> 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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: rpath alike feature for python scripts dieter <dieter@handshake.de> - 2014-07-31 07:36 +0200

csiph-web