PYTHONUSERBASE should not affect distutils.sysconfig.get_python_lib and friends
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Invalid
|
Unknown
|
|||
python2.6 (Ubuntu) |
Fix Released
|
Low
|
Matthias Klose | ||
Karmic |
Won't Fix
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Low
|
Matthias Klose |
Bug Description
Binary package hint: python2.6
The PYTHONUSERBASE variable sets the base directory for the *user* site directory. This defaults to ~/.local, and sensible values for it will generally include $HOME. This is not very well documented, but see for example http://
The dist-packages vs site-packages logic ubuntu adds to distutils checks for the existence of this variable even if it is being asked for the *system* site-packages directory or one in some other explicitly set prefix. This does not make any sense.
For example: a trivial setup.py I wrote for testing (with pretty much modules=
ProblemType: Bug
Architecture: i386
Date: Fri Nov 6 00:54:50 2009
DistroRelease: Ubuntu 9.10
Package: python2.6 2.6.4-0ubuntu1
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: python2.6
Uname: Linux 2.6.31-14-generic i686
Related branches
Changed in python: | |
status: | Unknown → New |
Changed in python2.6 (Ubuntu): | |
assignee: | nobody → Matthias Klose (doko) |
Changed in python: | |
status: | New → Incomplete |
Changed in python: | |
status: | Incomplete → Invalid |
this has nothing to do with dist-packages/ site-packages. distutils doesn't honor PYTHONUSERBASE. Use --user for now to install packages.