[Python-Dev] Proposing PEP 376
P.J. Eby
pje at telecommunity.com
Wed Apr 7 16:35:24 CEST 2010
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)?
More information about the Python-Dev
mailing list