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


Groups > comp.lang.python > #75307

Re: rpath alike feature for python scripts

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <olaf@aepfle.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.061
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'cc:addr:python-list': 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; 'header:User-Agent:1': 0.23; 'script.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; 'skip:" 40': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'could': 0.34; 'but': 0.35; 'words,': 0.36; 'does': 0.39; 'obtain': 0.39; 'called': 0.40; 'how': 0.40; 'ensure': 0.60; 'content-disposition:inline': 0.62; 'skip:+ 10': 0.65; '26,': 0.68; 'jul': 0.74; 'enhances': 0.84
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; t=1406535052; l=474; s=domk; d=aepfle.de; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Subject:Cc:To:From:Date; bh=jdPXn9plpvvv62cqyRCFSJfIRsk=; b=sKTfgdOAzDA10DRcOP2B85QL53le2jNdnPkuQjPsmbagbiEAf65mDvrmKGtXBgl3Vlt VawTR2SW5merGIz00izr4bXLJf/yKURy1cqKfft8e0KBXH6wg4fHqEGD97fU8xS4mbduI O4YQKGhjYV4xjxpdM0NmuhI5+51q9n0yoM0=
X-RZG-AUTH :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnBYfssVYdSE5SlMz/RfRVMZK6LAqe9EdvJ+MD87cNB
X-RZG-CLASS-ID mo00
Date Mon, 28 Jul 2014 09:57:40 +0200
From Olaf Hering <olaf@aepfle.de>
To dieter <dieter@handshake.de>
Subject Re: rpath alike feature for python scripts
References <20140725140813.GA1867@aepfle.de> <87ha24mzzo.fsf@handshake.de>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
In-Reply-To <87ha24mzzo.fsf@handshake.de>
User-Agent Mutt/1.5.22.rev6346 (2013-10-29)
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
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.12385.1406535054.18130.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406535054 news.xs4all.nl 2844 [2001:888:2000:d::a6]:48907
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75307

Show key headers only | View raw


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?

+sys.path.insert(0, "/some/where/lib64/python2.6/site-packages")


Olaf

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


Thread

Re: rpath alike feature for python scripts Olaf Hering <olaf@aepfle.de> - 2014-07-28 09:57 +0200

csiph-web