At 04:01 PM 4/7/2010 +0200, Tarek Ziadé wrote:
2010/4/2 P.J. Eby <p...@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)?
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com