[Python-modules-team] Bug#556156: installs files into /usr/local for Python >= 2.6

Piotr Ożarowski piotr at debian.org
Fri Nov 13 22:13:36 UTC 2009

Package: python-pybabel
Version: 0.9.4-1
Severity: important
User: debian-python at lists.debian.org
Usertags: python2.6 usr-local


Starting from Python 2.6, the installation paths for distutils have
changed. /usr/local is now used by default.

When rebuilt against python-all{,-dev,-dbg} (and thus python2.6) from Debian
experimental, your package contained these files:

 python-pybabel:drwxr-xr-x root/root         0 2009-11-13 10:03 ./usr/local/
 python-pybabel:drwxr-xr-x root/root         0 2009-11-13 10:03 ./usr/local/bin/
 python-pybabel:-rwxr-xr-x root/root       298 2009-11-13 10:03 ./usr/local/bin/pybabel

How to fix it?
* try to pass "--prefix=/usr" to setup.py call, check if it's enough,
* if your package is using python-central:
  - add "XB-Python-Version: ${python:Versions}" to all binary packages that ship
    Python modules (.py files) or extensions (.so, including _d.so) in
    debian/control, check if it's enough,
  - try to convert to python-support[1], check if it's enough,
* add --install-layout=deb to setup.py call and bump minimum required
  python{,-all,all-dev} build dependency to 2.5.4-1~, check if it's enough
* ask for help on #debian-python or debian-python at l.d.o

[1] http://wiki.debian.org/DebianPython/central2support

More information about the Python-modules-team mailing list