Comment 10 for bug 362570

Revision history for this message
EdC (edc-cce) wrote :

For me, installing with --prefix=/usr/local still installs into a directory (/usr/local/lib/python2.6/site-packages/). That choice is OK with me, but the problem is that this directory is not in the default search path and so the original bug has not been resolved and this breaks installations of third-party packages that used to work in 8.10.

Here's an example showing that installing a package (rdiff-backup in this case) with the --prefix=/usr/local puts it in a location that is not in the python search path:

/usr/local/src/rdiff-backup-1.2.5 (450) $ dpkg -l python
...
ii python 2.6.2-0ubuntu1 An interactive high-level object-oriented language (default version)

/usr/local/src/rdiff-backup-1.2.5 (453) $ sudo python setup.py install --prefix=/usr/local --record files-installed
running install
...
writing list of installed files to 'files-installed'

/usr/local/src/rdiff-backup-1.2.5 (454) $ grep Main.pyc files-installed
/usr/local/lib/python2.6/site-packages/rdiff_backup/Main.pyc

/usr/local/src/rdiff-backup-1.2.5 (457) $ rdiff-backup --version
Traceback (most recent call last):
  File "/usr/local/bin/rdiff-backup", line 20, in <module>
    import rdiff_backup.Main
ImportError: No module named rdiff_backup.Main

/usr/local/src/rdiff-backup-1.2.5 (462) $ sudo bash -c 'echo "/usr/local/lib/python2.6/site-packages/" >/usr/lib/python2.6/dist-packages/local.pth'

/usr/local/src/rdiff-backup-1.2.5 (464) $ rdiff-backup --version
rdiff-backup 1.2.5

So I think /usr/local/lib/python2.6/site-packages/ needs to be added to the default search path.