Public bug reported:

Binary package hint: python2.6

When installing a module or package locally on a linux system, that
software is usually installed into the 'site-packages' directory, in a
location that looks similar to '/usr/lib/python2.6/site-packages/'. A
change in the way that python software has been packaged has caused a
new directory to be created '/usr/lib/python2.6/dist-packages/'.

>From reading information on the debian mailing lists about this decision
the motiviation was to make it so that software installed on a debian
system by packages would be installed to a separate directory to the one
that is used by distutils for installing software.

i.e. dpkg installs to 'dist-packages' and running 'python setup.py
install' would install software to the site-packages directory.

This seems to work as expected under python2.5, but python2.6 instead
does the following:

from distutils.setup import get_python_lib() returns the 'dist-packages' 
directory.
sys.path no longer includes the 'site-packages' directory
'python setup.py install' now installs software in the 'dist-packages' 
directory.
'/usr/lib/python2.6/site-packages/' does not exist.

I tested this today with a fresh install of ubuntu 9.04, and the precise
version of python was 2.6.2-0ubuntu1.

** Affects: python2.6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
python2.6 fails to create or use site-packages
https://bugs.launchpad.net/bugs/435015
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to