[Distutils] stdeb-0.3 error
greno at verizon.net
Sun Sep 20 05:24:09 CEST 2009
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...
python2.4 -c "import
Traceback (most recent call last):
File "<string>", line 1, in ?
File "setup.py", line 35, in ?
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
Gerry Reno wrote:
> Ok, I got the __file__ problem solved but now I want to do this whole
> deb pkg create as just a single command in my own setup.py. How can I
> do this?
> I'm thinking something like:
> # my setup.py
> import stdeb
> sub_commands=[('sdist_dsc', None),]
> system('dpgk-source ...)
> print ".deb is here..."
More information about the Distutils-SIG