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

Re: git-buildpackage python3



Hi Julian,
On 05/01/2014 12:39 AM, Julian Taylor wrote:
On 30.04.2014 22:56, Alex Mestiashvili wrote:
Greetings everybody,

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...
git-buildpackage runs the clean target before exporting the dsc so you
need the build dependencies installed on the host for pybuild.
you can disable that with --git-cleaner=true



yes, this was exactly the problem I was hitting, but using --git-cleaner=true didn't work for me. The problem was solved by installing python3-setuptools on the host system. ( now it is very obvious :) )

Here is the detailed answer: https://lists.debian.org/debian-mentors/2014/04/msg00355.html

Thank you,
Alex


Reply to: