[Python-modules-team] Bug#556160: installs files into /usr/local for Python >= 2.6
Piotr Ożarowski
piotr at debian.org
Fri Nov 13 22:17:03 UTC 2009
Package: pyyaml
Version: 3.09-1
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:
pyyaml:drwxr-xr-x root/root 0 2009-11-13 10:53 ./usr/local/
pyyaml:drwxr-xr-x root/root 0 2009-11-13 10:53 ./usr/local/lib/
pyyaml:drwxr-xr-x root/root 0 2009-11-13 10:53 ./usr/local/lib/python2.6/
pyyaml:drwxr-xr-x root/root 0 2009-11-13 10:53 ./usr/local/lib/python2.6/dist-packages/
pyyaml:-rw-r--r-- root/root 627440 2009-11-13 10:53 ./usr/local/lib/python2.6/dist-packages/_yaml_d.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