2.6.4-0ubuntu3 distutils modification of self.prefix breaks custom install scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.6 (Ubuntu) |
Fix Released
|
Undecided
|
Matthias Klose | ||
Karmic |
Won't Fix
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Matthias Klose |
Bug Description
Binary package hint: python2.6
The file debian/
This bug affects users who install zenmap from source. Here is a problem report we received: http://
I attached a small setup.py script that demonstrates the problem. The custom installer tries to modify an installed file after the normal install process runs, and modifies the wrong file. (You have to supply a test.py script for the installer to act on.)
$ sudo python setup.py install --prefix=
running install
running build
running build_scripts
running install_scripts
changing mode of /usr/local/
running install_egg_info
Removing /usr/local/
Writing /usr/local/
self.prefix is '/usr'
Modifying /usr/bin/test.py
This is on Ubuntu 9.10.
Related branches
Changed in python2.6 (Ubuntu): | |
assignee: | nobody → Matthias Klose (doko) |
This bug was fixed in the package python2.6 - 2.6.4-5ubuntu1
---------------
python2.6 (2.6.4-5ubuntu1) lucid; urgency=low
* Merge with Debian (2.6.4-5).
python2.6 (2.6.4-5) unstable; urgency=low
* Update to 20100131, taken from the 2.6 release branch. sysconfig. get_python_ lib(): Only return ".../dist-packages" if /usr/local is present, without changing the install prefix.
- Fix typo in os.execvp docstring. Closes: #558764.
* distutils.
prefix is the default prefix and if PYTHONUSERBASE is not set in the
environment and if --user option is not present. LP: #476005.
* distutils install: Don't install into /usr/local/local, if option
--prefix=
LP: #510211.
-- Matthias Klose <email address hidden> Sun, 31 Jan 2010 22:31:41 +0100