[Daniel Baumann, 2009-11-10] > Piotr Oz.arowski wrote: > > Starting from Python 2.6, the installation paths for distutils have > > changed. Instead of /usr/lib/pythonX.Y/site-packages, the default has > > now changed to /usr/local. > > i've checked on a up2date sid with python2.6 from experimental, and the > necessary files are installed in /usr/lib/python2.6/dist-packages, > eventhough file is neither using python-support nor python-central.
please install complete set of packages, including python, python-all{,-dev,-dbg} (i.e. `pyversions -rv` invoked in package dir should return "2.5 2.6") Since your package doesn't ship .py files, you don't really need pycentral/suport, so to fix this bug it should be enough to apply this patch: --- debian/rules.orig 2009-11-10 14:55:18.000000000 +0100 +++ debian/rules 2009-11-10 14:52:58.498805035 +0100 @@ -77,13 +77,13 @@ for python in $(PYTHON_VERSIONS); \ do \ (cd python && $$python setup.py install --no-compile \ - --root=$(CURDIR)/debian/python-magic); \ + --root=$(CURDIR)/debian/python-magic --prefix=/usr); \ done set -e; \ for python in $(PYTHON_VERSIONS); do \ (cd python && $$python-dbg setup.py install --no-compile \ - --root=$(CURDIR)/debian/python-magic-dbg); \ + --root=$(CURDIR)/debian/python-magic-dbg --prefix=/usr); \ done find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f find debian/python-*-dbg -depth -empty -exec rmdir {} \; > could you please have a look if this is a false-positive, or that i just > did something wrong. debc ../file_5.03-2_amd64.changes | grep local drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/lib/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/lib/python2.6/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/lib/python2.6/dist-packages/ -rw-r--r-- root/root 13760 2009-11-08 23:37 ./usr/local/lib/python2.6/dist-packages/magic.so -rw-r--r-- root/root 227 2009-11-08 23:37 ./usr/local/lib/python2.6/dist-packages/Magic_file_extensions-0.1.egg-info drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/lib/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/lib/python2.6/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/local/lib/python2.6/dist-packages/ -rw-r--r-- root/root 33348 2009-11-08 23:36 ./usr/local/lib/python2.6/dist-packages/magic_d.so drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/lib/debug/usr/local/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/lib/debug/usr/local/lib/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/lib/debug/usr/local/lib/python2.6/ drwxr-xr-x root/root 0 2009-11-08 23:37 ./usr/lib/debug/usr/local/lib/python2.6/dist-packages/ -rw-r--r-- root/root 21615 2009-11-08 23:37 ./usr/lib/debug/usr/local/lib/python2.6/dist-packages/magic.so PS clean taget doesn't remove all files it should remove -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org