Python distutils installs into 'site-packages' instead of 'dist-packages' when a prefix is set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.6 (Debian) |
Fix Released
|
Unknown
|
|||
python2.6 (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned | ||
python3-defaults (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python2.6
When running a setup.py script with distutils in Jaunty like this:
$ python setup.py install
modules get installed at '/usr/local/
In contrast, when running
$ python setup.py install --prefix=/usr/local
modules get installed at '/usr/local/
In the same way
$ python setup.py install --prefix=/usr
installs modules at '/usr/lib/
The problem is that '/usr/[
Maybe this is intended but I would expect that specifying an install prefix like 'usr' or 'usr/local' still installs modules to a place which is in Python's default search path - it worked this way in Ubuntu <= 8.10 .
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: python2.6 2.6.2~rc1-0ubuntu2
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: python2.6
Uname: Linux 2.6.28-11-generic i686
Changed in python2.6 (Debian): | |
status: | Unknown → Won't Fix |
Changed in python2.6 (Debian): | |
status: | Won't Fix → Fix Released |
Changed in python3-defaults (Ubuntu): | |
status: | Confirmed → New |
yes, this works as designed. --prefix always overrides the default that Debian's system python does set. If you want to install into /usr/local/ lib/python2. 6/dist- packages, just omit the --prefix.