[Python-Dev] Proposing PEP 376 (original) (raw)
Tarek Ziadé ziade.tarek at gmail.com
Wed Apr 7 16:40:35 CEST 2010
- Previous message: [Python-Dev] Proposing PEP 376
- Next message: [Python-Dev] Proposing PEP 376
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Apr 7, 2010 at 4:35 PM, P.J. Eby <pje at telecommunity.com> wrote:
At 04:01 PM 4/7/2010 +0200, Tarek Ziadé wrote:
2010/4/2 P.J. Eby <pje at telecommunity.com>: [...] > > * Paths under the base installation location are relative to the base > * Paths not under the base installation location, but under the > installation > prefix, are also stored relative to the base, IF the base location is a > subpath of the installation prefix > * All other paths are absolute. > > Where "base location" is the effective --install-lib directory, and > prefix > is the effective --prefix. (Which default of course to site-package and > sys.prefix respectively, but the spec shouldn't be in terms of those > defaults.) Just to make sure we agree on this: we use relative path if the file is in site-packages, or somewhere under sys.prefix. For the latter this is only if site-packages is under sys.prefix. Um, sys.prefix, or the prefix set by "setup.py install --prefix" (which of course defaults to sys.prefix)?
Yes, I used default values to make the text clearer.
so for the PEP :
- sys.prefix -> the installation prefix provided by --prefix at installation time
- site-packages -> the installation libdir, provided by --install-lib at installation time
-- Tarek Ziadé | http://ziade.org
- Previous message: [Python-Dev] Proposing PEP 376
- Next message: [Python-Dev] Proposing PEP 376
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]