rpath alike feature for python scripts

Albert-Jan Roskam fomcl at yahoo.com
Mon Jul 28 22:00:05 CEST 2014



----- Original Message -----

> From: Olaf Hering <olaf at aepfle.de>
> To: dieter <dieter at handshake.de>
> Cc: python-list at 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 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
> buildtime /some/where is known because its the --prefix= value.
> How does it know the remainder?

Hey, 

does this help: https://nixos.org/patchelf.html. It is not specific to Python, though.

AJ



More information about the Python-list mailing list