rpath alike feature for python scripts

2014-07-25 Thread Olaf Hering
Hello, 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 RPATH like feature, I'm aski

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-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: Python and IDEs [was Re: Python 3 is killing Python]

2014-08-02 Thread Olaf Hering
On Sat, Aug 02, Gregory Ewing wrote: > MacOSX doesn't currently have an automatic dependency > manager, but if it did, things would still be a lot neater > and tidier than they are in Linux or Windows, where what > is conceptually a single object (a package) gets split up > and its parts scattered

Re: GO vs Python

2014-08-25 Thread Olaf Hering
On Mon, Aug 25, Michael Torrie wrote: > No it came through fine here, originally. It must be Google Groups that > messed up the characters in displaying the message and in your reply. Likely not. The header I got with msgid lacks basic headers like "Content-Type:" and "Content-Transfer-Encoding