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


Groups > comp.lang.python > #75322

Re: rpath alike feature for python scripts

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <fomcl@yahoo.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.060
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'python,': 0.02; 'scripts': 0.03; 'cc:addr:python-list': 0.11; 'python': 0.11; 'corresponds': 0.16; 'values?': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'value.': 0.19; 'cc:addr:python.org': 0.22; 'script.': 0.24; 'header:Received:8': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'function': 0.29; 'feature': 0.29; 'though.': 0.31; '-----': 0.33; 'monday,': 0.33; 'could': 0.34; 'but': 0.35; 'words,': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.37; 'does': 0.39; 'subject:': 0.39; 'obtain': 0.39; 'called': 0.40; 'how': 0.40; 'ensure': 0.60; 'received:98.137': 0.60; 're:': 0.63; 'july': 0.63; 'email name :python-list': 0.65; 'header:Reply-To:1': 0.67; '26,': 0.68; 'received:gq1.yahoo.com': 0.68; 'received:mail.gq1.yahoo.com': 0.68; 'received:98.136': 0.69; 'jul': 0.74; 'hey,': 0.75; 'enhances': 0.84; 'received:bullet.mail.gq1.yahoo.com': 0.84
X-Yahoo-Newman-Property ymail-4
X-Yahoo-Newman-Id 357443.76372.bm@omp1080.mail.gq1.yahoo.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1406577605; bh=Viq5mM3Jvt1Jwu5zh+MAteIaPPFhyD7G87cQdqbL7RY=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=FwGS/uSHHl6Ab7U0G0XSpHtufeozqharqQlFx5c5dxPFnD9Wu8/qszh+5BDLusj4M0hEKi+UpGs17cmR7z2Gk82GE/X5gPr2VH8KT6bRRPA9n1uD03FG84ZcVm3+HJA8SMalxZzVyl/vJ9phhC02HJWubcLFhC+1kLW1j0BZxnM=
X-YMail-OSG oZofRy0VM1nU4A1ucjhbDeTPVxi1Y57ooLIrPDKsttxZp9B 7QE4IPS3.q_KxIhC0gWwc2rYNixiodr4OkM26JkBfJ3q5oi.IYbbNGrqtpWy pqRVIAObATsp9VA1AgtsLkAAfwhYwt29do7wAW_6fG.G3xrEV3RdxToXroXY 0wBG6Xtc63f7I7V1cLHQ6c9ZkyxxxgbSdaiPxvDbJbYAIj2VDLn49c0sf3Fs _4dbIxTfTXH4TCJHmzAmdvwMMYdZXJdzJrkseXDN3pURssl5OoSEKlNr35Iy 9MT32o_JADygL3O25tosWGh1ZWJQ75jMBhgI2oxR3X4Uut4GnYEeFig7iaQz U1r64N942BwNLGMVcRNfwbcLvTLu2jsO030rgzl_cHufM7ooXahOJgTrZfbH E7uv6zHpt4IGbxKo8P6QootWNYid2F9_0ivoubwxdKx46T13mMd4hD0_XcRv VK1Xa7UVAfdpsvb5Eb6YZHeriC5Tjv4WV9A2nVwDRScKtH7DEKMh5m8quTC. 8gtb_PjnI0hPO4pgH4FlMen_LSlCYjw50eb2x3FQrdXbfMWt6JifWdkbdtht wEHc2jWNcYRIbd6DBWCfw1StrN2vcwe_SRXAI0xPSYDXwLtvK_x6dMDPNNlI GFjjjN5Js
X-Rocket-MIMEInfo 002.001, CgotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tCgo.IEZyb206IE9sYWYgSGVyaW5nIDxvbGFmQGFlcGZsZS5kZT4KPiBUbzogZGlldGVyIDxkaWV0ZXJAaGFuZHNoYWtlLmRlPgo.IENjOiBweXRob24tbGlzdEBweXRob24ub3JnCj4gU2VudDogTW9uZGF5LCBKdWx5IDI4LCAyMDE0IDk6NTcgQU0KPiBTdWJqZWN0OiBSZTogcnBhdGggYWxpa2UgZmVhdHVyZSBmb3IgcHl0aG9uIHNjcmlwdHMKPiAKPiBPbiBTYXQsIEp1bCAyNiwgZGlldGVyIHdyb3RlOgo.IAo.PiAgVGhlICJiaW5hcnkiIGNvcnJlc3BvbmQBMAEBAQE-
X-Mailer YahooMailWebService/0.8.196.685
References <20140725140813.GA1867@aepfle.de> <87ha24mzzo.fsf@handshake.de> <20140728075740.GA17585@aepfle.de>
Date Mon, 28 Jul 2014 13:00:05 -0700
From Albert-Jan Roskam <fomcl@yahoo.com>
Subject Re: rpath alike feature for python scripts
To Olaf Hering <olaf@aepfle.de>, dieter <dieter@handshake.de>
In-Reply-To <20140728075740.GA17585@aepfle.de>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To Albert-Jan Roskam <fomcl@yahoo.com>
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12394.1406577931.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406577931 news.xs4all.nl 2893 [2001:888:2000:d::a6]:44868
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75322

Show key headers only | View raw



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

> From: Olaf Hering <olaf@aepfle.de>
> To: dieter <dieter@handshake.de>
> 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 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

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


Thread

Re: rpath alike feature for python scripts Albert-Jan Roskam <fomcl@yahoo.com> - 2014-07-28 13:00 -0700

csiph-web