[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#556148: installs files into /usr/local for Python >= 2.6



Hi Dirk,

On Fri, Nov 13, 2009 at 23:45, Dirk Eddelbuettel <edd@debian.org> wrote:
>
> On 13 November 2009 at 22:54, Piotr Ożarowski wrote:
> | Package: nwsclient
> | Version: 1.6.4-1
> | Severity: important
> | User: debian-python@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:
>
> I don't have access to experimental in my pbuilder. So how should I test this?

After Piotr suggestions, I'm creating right now a pbuilder chroot to
test these bugs, here are the steps I'm doing:

- cd where 'base.tgz' is
- cp base.tgz base_python2.6.tgz
- sudo pbuilder --login --basetgz base_python2.6.tgz --save-after-login
- echo "deb http://ftp.debian.org/debian/ experimental main" >>
/etc/apt/sources.list
- apt-get update
- apt-get install -t experimental python-all-dev python-all-dbg (I
need these 2, they should pull in all the needed packages)
- exit
- sudo pbuilder --build --basetgz base_python2.6.tgz <pkg>.dsc

I'm at 'apt-get install...' but the rest should Just Work.

> |  nwsclient:drwxr-xr-x root/root         0 2009-11-13 04:20 ./usr/local/
> |  nwsclient:drwxr-xr-x root/root         0 2009-11-13 04:20 ./usr/local/bin/
> |  nwsclient:-rwxr-xr-x root/root      7313 2009-11-13 04:20 ./usr/local/bin/PythonNWSSleighWorker.py
> |  nwsclient:-rwxr-xr-x root/root      2882 2009-04-27 23:18 ./usr/local/bin/PythonNWSSleighWorker
> |  nwsclient:-rwxr-xr-x root/root      2394 2009-11-13 04:20 ./usr/local/bin/pybabelfishd
> |  nwsclient:-rwxr-xr-x root/root       845 2009-11-13 04:20 ./usr/local/bin/pybabelfish
> |
> | How can it be fixed?
> | ====================
> | * 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,
>
> I already did that, so I guess it is not 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

Did you add this too?

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


Reply to: