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

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


Package: pyxine
Version: 0.1alpha2-5
Severity: important
User: debian-python at lists.debian.org
Usertags: python2.6 usr-local

Hi,

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:

 pyxine:drwxr-xr-x root/root         0 2009-11-13 10:50 ./usr/lib/debug/usr/local/
 pyxine:drwxr-xr-x root/root         0 2009-11-13 10:50 ./usr/lib/debug/usr/local/lib/
 pyxine:drwxr-xr-x root/root         0 2009-11-13 10:50 ./usr/lib/debug/usr/local/lib/python2.6/
 pyxine:drwxr-xr-x root/root         0 2009-11-13 10:50 ./usr/lib/debug/usr/local/lib/python2.6/dist-packages/
 pyxine:drwxr-xr-x root/root         0 2009-11-13 10:50 ./usr/lib/debug/usr/local/lib/python2.6/dist-packages/pyxine/
 pyxine:-rw-r--r-- root/root    171581 2009-11-13 10:50 ./usr/lib/debug/usr/local/lib/python2.6/dist-packages/pyxine/libxine.so
 pyxine:-rw-r--r-- root/root    423145 2009-11-13 10:50 ./usr/lib/debug/usr/local/lib/python2.6/dist-packages/pyxine/pxlibc.so

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