Re: rpath alike feature for python scripts

2014-07-30 Thread dieter
dieter writes: > Olaf Hering 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 wit

Re: rpath alike feature for python scripts

2014-07-29 Thread dieter
Olaf Hering 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

Re: rpath alike feature for python scripts

2014-07-29 Thread Olaf Hering
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. Looks like I hav

Re: rpath alike feature for python scripts

2014-07-28 Thread dieter
Olaf Hering writes: > On Sat, Jul 26, dieter wrote: > >> The "binary" corresponds to a script. The script could have >> a function "setup_path" which enhances "sys.path" as appropriate >> and ensure that this function is called near its beginning. > > Yes, but how does it obtain the required valu

Re: rpath alike feature for python scripts

2014-07-28 Thread Albert-Jan Roskam
- Original Message - > From: Olaf Hering > To: dieter > Cc: python-list@python.org > Sent: Monday, July 28, 2014 9:57 AM > Subject: Re: rpath alike feature for python scripts > > On Sat, Jul 26, dieter wrote: > >> The "binary" corresponds

Re: rpath alike feature for python scripts

2014-07-28 Thread Olaf Hering
On Sat, Jul 26, dieter wrote: > The "binary" corresponds to a script. The script could have > a function "setup_path" which enhances "sys.path" as appropriate > and ensure that this function is called near its beginning. Yes, but how does it obtain the required values? In other words, at buildtim

Re: rpath alike feature for python scripts

2014-07-25 Thread dieter
Olaf Hering writes: > ELF binaries have a concept of RPATH, that means the interpreter looks > for libraries first in a list of directories provided by the binary > before falling back to default system directories. > > Since python scripts also do some sort of library loading, but lack an > RPAT