On Thu, Mar 10, 2011 at 09:03:03PM +0100, Ludovic Rousseau wrote:
> Hello,
>
> I moved my package pykcs11 [1] from dh_pycentral to dh_python2. The
> conversion was easy. The version in unstable uses dh_python2.
>
> I also wanted to move my debian/rules file from the "heavy" version
> [2] to the minimal version using:
>
> #!/usr/bin/make -f
> %:
> dh $@ --with python2
>
> But I now get a warning and an error (complete log attached):
> [...]
> dh_python2
> W: dh_python2:94: Python 2.6 should install files in
> /usr/lib/python2.6/dist-packages/. Did you forget
> "--install-layout=deb"?
> E: dh_python2:146: you most probably have to build extension for python2.5.
> make: *** [binary] Error 12
you might want to add
override_dh_auto_build:
python setup.py install --root=$(CURDIR)/debian/python-pykcs11 --install-layout=deb
(The important part is --install-layout=deb).
Regards
Jan
--
Jan Dittberner - Debian Developer
GPG-key: 4096R/558FB8DD 2009-05-10
B2FF 1D95 CE8F 7A22 DF4C F09B A73E 0055 558F B8DD
http://ddportfolio.debian.net/ - http://people.debian.org/~jandd/
Attachment:
signature.asc
Description: Digital signature