[issue5819] Add PYTHONPREFIXES environment variable
report at bugs.python.org
Fri Dec 18 01:20:37 CET 2009
Christopher Dunn <cdunn2001 at gmail.com> added the comment:
I am not sure that this guy's idea is good, but I think that he deserves
more attention. In comments elsewhere on the web, I noticed that people
thought the PYTHONUSERBASE site-packages directory could contain .pth
files which would serve the same purpose as his proposed environment
variable. However, .pth files are not recursive; a .pth file in one
directory does not cause .pth files to be processed in the directories
named by its contents.
I agree with ianb that this is a poor way to mimic virtualenv. There is
a difference between user additions -- which should affect *all* python
code that he uses -- and separate Python installations.
There might be other reasons for multiple user site-packages
directories. For example, Python lacks Perl's architecture awareness.
Perl can load from
and a few other combinations.
Python also lacks a PERL5OPT equivalent. I am forced to use the
PYTHONUSERBASE mechanism to simulate that behavior (which I use to turn
on code coverage everywhere during testing) but I only get to set that once.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list