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

Re: E: dh_python2:146: you most probably have to build extension for python2.5.



On Thu, Mar 10, 2011 at 09:20:56PM +0100, Jan Dittberner wrote:
> 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).

Shouldn't that be override_dh_auto_install rather than _build?
Anyway, I'd be surprised if this couldn't be reduced to:

 override_dh_auto_build:
 	dh_auto_build -- --install-layout=deb

Furthermore, I'd be surprised to learn that dh_auto_* weren't already
passing --install-layout=deb.

However, AIUI the main concern here is about getting dh to compile the
extension twice, once for each python version.  I don't think
--install-layout=deb helps at all for that.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature


Reply to: