[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.



2011/3/10 Jan Dittberner <jandd@debian.org>:
> 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

override_dh_auto_install instead.

This fixes the warning but not the error.

Thanks

-- 
 Dr. Ludovic Rousseau


Reply to: