Public bug reported:

Binary package hint: python-setuptools

Ubuntu's version of setuptools uses incorrect paths in Jaunty when using
'--prefix' for easy_install - it adds 'local' into several directories.

This means I can no longer 'easy_install' to the same directories I was
using before e.g.:

------
$ easy_install-2.5 --prefix=$HOME/.local  -Z elementtree
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 2] No such file or directory:
'/home/luke/.local/local/lib/python2.5/site-packages/test-easy-
install-20511.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /home/luke/.local/local/lib/python2.5/site-packages

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
--------

It has added 'local/' into the path - it should be installing into:

    /home/luke/.local/lib/python2.5/site-packages

not

    /home/luke/.local/local/lib/python2.5/site-packages

It used to do the first (i.e. in Intrepid, possibly more recently), and
there is now no way to convince it to do what it should be doing.

The reason for this behaviour is obvious, when you look at the source.
Ubuntu (or someone) has patched setuptools (see the attached diff, which
is *not* a suggestion, but what has already been done).  This patch has
broken easy_install, at least for python 2.5 and custom prefixes.

I'm guessing the patch is supposed to make things work nice with
mutliple versions of Python, but it needs reverting or fixing at the
moment.

** Affects: python-setuptools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
[jaunty] setuptools adds 'local' to prefix, breaking easy_install
https://bugs.launchpad.net/bugs/344410
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to