distutils tries to install in /usr/local/local/ when --prefix=/usr/local is set

Bug #456917 reported by David Huggins-Daines
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python2.6 (Ubuntu)
Fix Released
Undecided
Matthias Klose
Karmic
Fix Released
Undecided
Matthias Klose
python3.1 (Ubuntu)
Fix Released
Undecided
Unassigned
Karmic
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python2.6

This is a bug from jaunty which was fixed ... but it's back!

dhuggins@gorb:~/Projects/Sphinx/sphinxbase/amd64-linux/python$ python2.6 setup.py install --prefix=/usr/local
running install
running build
running build_ext
running install_lib
creating /usr/local/local
error: could not create '/usr/local/local': Permission denied

python2.5 in karmic doesn't have this problem:

dhuggins@gorb:~/Projects/Sphinx/sphinxbase/amd64-linux/python$ python2.5 setup.py install --prefix=/usr/local
running install
running build
running build_ext
running install_lib
copying build/lib.linux-x86_64-2.5/sphinxbase.so -> /usr/local/lib/python2.5/site-packages

ProblemType: Bug
Architecture: amd64
Date: Wed Oct 21 00:19:27 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: python2.6 2.6.4~rc2-0ubuntu1
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: python2.6
Uname: Linux 2.6.31-14-generic x86_64

Revision history for this message
David Huggins-Daines (dhuggins) wrote :
Matthias Klose (doko)
Changed in python2.6 (Ubuntu):
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

I reviewed the package in -proposed, approved. Will accept right after karmic release.

tags: added: regression-release
Changed in python2.6 (Ubuntu Karmic):
assignee: nobody → Matthias Klose (doko)
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted python2.6 into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.6 - 2.6.4-0ubuntu1

---------------
python2.6 (2.6.4-0ubuntu1) karmic-proposed; urgency=low

  * Python 2.6.4 final release.
    - No changes compared to the release candidate 2.
  * distutils install: Don't install into /usr/local/local, if option
    --prefix=/usr/local is present. LP: #456917.

 -- Matthias Klose <email address hidden> Tue, 27 Oct 2009 12:33:03 +0100

Changed in python2.6 (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied karmic-proposed to lucid.

(And thanks Launchpad for always closing the wrong task automatically)

Changed in python2.6 (Ubuntu Karmic):
status: Fix Released → Fix Committed
Changed in python2.6 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

I verified that --prefix=/usr/local/ works fine now (with distutils).

I run the test suites of some python programs, and they work fine.

tags: added: verification-done
removed: verification-needed
Matthias Klose (doko)
Changed in python3.1 (Ubuntu Karmic):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.6 - 2.6.4-0ubuntu1

---------------
python2.6 (2.6.4-0ubuntu1) karmic-proposed; urgency=low

  * Python 2.6.4 final release.
    - No changes compared to the release candidate 2.
  * distutils install: Don't install into /usr/local/local, if option
    --prefix=/usr/local is present. LP: #456917.

 -- Matthias Klose <email address hidden> Tue, 27 Oct 2009 12:33:03 +0100

Changed in python2.6 (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted python3.1 into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in python3.1 (Ubuntu Karmic):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python3.1 - 3.1.1-1ubuntu1

---------------
python3.1 (3.1.1-1ubuntu1) lucid; urgency=low

  * Update to the 3.1 release branch, 20091102.
  * distutils install: Don't install into /usr/local/local, if option
    --prefix=/usr/local is present. LP: #456917.
  * python3.1-doc: Fix searching in local documentation. LP: #456025.

 -- Matthias Klose <email address hidden> Mon, 02 Nov 2009 12:38:24 +0100

Changed in python3.1 (Ubuntu):
status: New → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

3.1 still needs to be tested.

tags: removed: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python3.1 - 3.1.1-0ubuntu5

---------------
python3.1 (3.1.1-0ubuntu5) karmic-proposed; urgency=low

  * distutils install: Don't install into /usr/local/local, if option
    --prefix=/usr/local is present. LP: #456917.
  * python3.1-doc: Fix searching in local documentation. LP: #456025.

 -- Matthias Klose <email address hidden> Mon, 02 Nov 2009 12:38:24 +0100

Changed in python3.1 (Ubuntu Karmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.