[Distutils] stdeb-0.3 error
Gerry Reno
greno at verizon.net
Sun Sep 20 18:35:18 CEST 2009
In my setup.py I have my own "install":
from distutils.command.install import install
...
class myinstall(install):
...
and when we call dpkg-buildpackage this local "install" seems to maybe
be causing the problem with the error: option
--single-version-externally-managed not recognized.
How can we make this option be recognized? Do we need to inherit
something from setuptools?
Regards,
Gerry
Gerry Reno wrote:
> Ok, I found how to control the python version: XS-Python-Version
>
> So now it is using python2.5 but dpkg-buildpackage hits an error:
> error: option --single-version-externally-managed not recognized
>
> What is this option?
> I've been searching but I don't find how to solve this.
> Is there a way to fix this?
>
> Regards,
> Gerry
>
>
> Gerry Reno wrote:
>> Ok, I have a setup.py that imports stdeb and creates a 'bdist_deb'
>> command.
>> The entire thing is working except for the last subcommand for
>> dpkg-buildpackage is trying to build for python2.4 and failing.
>>
>> dpkg-buildpackage fails in the fakeroot...
>> ...
>> debian/rules build
>> python2.4 -c "import
>> setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})"
>> build
>> Traceback (most recent call last):
>> File "<string>", line 1, in ?
>> File "setup.py", line 35, in ?
>> import stdeb
>> ImportError: No module named stdeb
>> make: *** [build-python2.4] Error 1
>> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
>>
>> Is this something to do with python versions?
>> So how do I limit the python versions for dpkg-buildpackage?
>>
>> stdeb is 0.3
>> $ python -V
>> Python 2.5.2
>>
>>
>> Regards,
>> Gerry
>>
More information about the Distutils-SIG
mailing list