[Python-modules-team] Bug#556154: installs files into /usr/local for Python >= 2.6
Piotr Ożarowski
piotr at debian.org
Fri Nov 13 22:09:29 UTC 2009
Package: pyogg
Version: 1.3+repack-4
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:
pyogg:drwxr-xr-x root/root 0 2009-11-13 08:45 ./usr/local/
pyogg:drwxr-xr-x root/root 0 2009-11-13 08:45 ./usr/local/include/
pyogg:drwxr-xr-x root/root 0 2009-11-13 08:45 ./usr/local/include/python2.6/
pyogg:drwxr-xr-x root/root 0 2009-11-13 08:45 ./usr/local/include/python2.6/pyogg/
pyogg:-rw-r--r-- root/root 674 2002-10-07 01:04 ./usr/local/include/python2.6/pyogg/pyogg.h
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