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

git-buildpackage python3



Greetings everybody,

I started packaging of python-multipletau [0] and added python3 stanza to the control file fgollowing guidelines from https://wiki.debian.org/Python/LibraryStyleGuide and https://wiki.debian.org/Python/Pybuild

However when I try to build the package using git-buildpackage and a minimal base system I get the following:

git-buildpackage --git-pbuilder --git-arch=amd64
dh clean --with python2,python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
        pybuild --clean -i python{version} -p 2.7 --dir .
I: pybuild base:170: python2.7 setup.py clean
running clean
removing '/home/toor/debian-med/python-multipletau/.pybuild/pythonX.Y_2.7/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
        pybuild --clean -i python{version} -p "3.3 3.4" --dir .
I: pybuild base:170: python3.3 setup.py clean
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from setuptools import setup, find_packages
ImportError: No module named 'setuptools'
E: pybuild pybuild:256: clean: plugin distutils failed with: exit code=1: python3.3 setup.py clean dh_auto_clean: pybuild --clean -i python{version} -p 3.3 3.4 --dir . returned exit code 13
make: *** [clean] Error 13

I looked on some other python3 packages and for example I get a similar result for python-dnsq package:

gbp-clone git://anonscm.debian.org/collab-maint/python-dnsq.git

/tmp/test/python-dnsq$ git-buildpackage --git-pbuilder --git-arch=amd64
dh clean --with python2,python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py clean
running clean
removing '/tmp/test/python-dnsq/.pybuild/pythonX.Y_2.7/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:170: python3.4 setup.py clean
/bin/sh: 1: python3.4: not found
E: pybuild pybuild:256: clean: plugin distutils failed with: exit code=127: python3.4 setup.py clean dh_auto_clean: pybuild --clean -i python{version} -p 3.4 3.3 --dir . returned exit code 13
make: *** [clean] Error 13
gbp:error: Couldn't run 'fakeroot debian/rules clean': fakeroot debian/rules clean returned 2

So, I assume that there is something wrong with git-buildpackage or pbuilder... or pybuild...

Just for the reference here is the very beginning of the thread:
https://lists.debian.org/debian-mentors/2014/04/msg00343.html

I would appreciate any help,
thank you,
Alex

[0] http://anonscm.debian.org/gitweb/?p=debian-med/python-multipletau.git


Reply to: