Hi, I'm working on python-ruffus (current work not commited to Git since upstream is preparing a new version - I'm fine to inject Beta to Git if the abstract description of the problem is not sufficient). Upstream said it works with tox and thus I tried in debian/rules:
export PYBUILD_TEST_TOX=1 %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild which resulted in: ... dh_auto_test -O--buildsystem=pybuild I: pybuild base:170: cd '/tmp/buildd/python-ruffus-2.6~beta2/.pybuild/pythonX.Y_2.7/build'; tox -c '/tmp/buildd/python-ruffus-2.6~beta2'/tox.ini -e py27 GLOB sdist-make: /tmp/buildd/python-ruffus-2.6~beta2/setup.py py27 create: /tmp/buildd/python-ruffus-2.6~beta2/.tox/py27 ERROR: invocation failed, logfile: /tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/log/py27-0.log ERROR: actionid=py27 msg=getenv cmdargs=['/usr/bin/python3', '-mvirtualenv', '--setuptools', '--python', '/usr/bin/python2.7', 'py27'] env={'PBUILDER_PKGDATADIR': '/usr/share/pbuilder', 'COWDANCER_ILISTFILE': '/.ilist', 'CPPFLAGS': '-D_FORTIFY_SOURCE=2', 'SHLVL': '5', 'DEB_BUILD_GNU_TYPE': 'x86_64-linux-gnu', 'DEB_HOST_ARCH_ENDIAN': 'little', 'F msg=getenv cmdargs=['/usr/bin/python3', '-mvirtualenv', '--setuptools', '--python', '/usr/bin/python2.7', 'py27'] env={'PBUILDER_PKGDATADIR': '/usr/share/pbuilder', 'COWDANCER_ILISTFILE': '/.ilist', 'CPPFLAGS': '-D_FORTIFY_SOURCE=2', 'SHLVL': '5', 'DEB_BUILD_GNU_TYPE': 'x86_64-linux-gnu', 'DEB_HOST_ARCH_ENDIAN': 'little', 'F ___________________________________ summary ____________________________________ ERROR: py27: InvocationError: /usr/bin/python3 -mvirtualenv --setuptools --python /usr/bin/python2.7 py27 (see /tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/log/py27-0.log) E: pybuild pybuild:256: test: plugin distutils failed with: exit code=1: cd '/tmp/buildd/python-ruffus-2.6~beta2/.pybuild/pythonX.Y_2.7/build'; tox -c '/tmp/buildd/python-ruffus-2.6~beta2'/tox.ini -e py27 dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit code 13 debian/rules:14: recipe for target 'build' failed make: *** [build] Error 13 dpkg-buildpackage: error: debian/rules build gave error exit status 2 E: Failed autobuilding of package W: no hooks of type C found -- ignoring I: unmounting dev/pts filesystem I: unmounting run/shm filesystem I: unmounting proc filesystem SPLAY': 'localhost:11.0', 'LANG': 'C', 'http_proxy': 'http://127.0.0.1:9/', 'DEB_TARGET_ARCH_BITS': '64', 'DEB_TARGET_ARCH_ENDIAN': 'little', 'SSH_CONNECTION': '192.168.0.1 50972 192.168.0.17 22', 'LC_ALL': 'C', New python executable in py27/bin/python2.7 Also creating executable in py27/bin/python Please make sure you remove any previous custom paths from your /tmp/buildd/python-ruffus-2.6~beta2/.pybuild/pythonX.Y_2.7/.pydistutils.cfg file. Installing setuptools, pip... Complete output from command /tmp/buildd/python-r...x/py27/bin/python2.7 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip: Ignoring indexes: https://pypi.python.org/simple/ Downloading/unpacking setuptools Downloading/unpacking pip Installing collected packages: setuptools, pip Cleaning up... Exception: Traceback (most recent call last): File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/commands/install.py", line 295, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", line 1436, in install requirement.install(install_options, global_options, *args, **kwargs) File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", line 672, in install self.move_wheel_files(self.source_dir, root=root) File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", line 902, in move_wheel_files pycompile=self.pycompile, File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/wheel.py", line 327, in move_wheel_files generated.extend(maker.make(spec)) File "/tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/scripts.py", line 311, in make self._make_script(entry, filenames, options=options) File "/tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/scripts.py", line 215, in _make_script self._write_script(scriptnames, shebang, script, filenames, ext) File "/tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/scripts.py", line 195, in _write_script self._fileop.write_binary_file(outname, script_bytes) File "/tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/util.py", line 384, in write_binary_file with open(path, 'wb') as f: IOError: [Errno 13] Permission denied: '/usr/bin/pip2.7' Storing debug log for failure in /tmp/buildd/python-ruffus-2.6~beta2/.pybuild/pythonX.Y_2.7/.pip/pip.log ---------------------------------------- ...Installing setuptools, pip...done. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/virtualenv.py", line 2378, in <module> main() File "/usr/lib/python3/dist-packages/virtualenv.py", line 830, in main symlink=options.symlink) File "/usr/lib/python3/dist-packages/virtualenv.py", line 1032, in create_environment install_wheel(to_install, py_executable, search_dirs) File "/usr/lib/python3/dist-packages/virtualenv.py", line 975, in install_wheel 'PIP_NO_INDEX': '1' File "/usr/lib/python3/dist-packages/virtualenv.py", line 917, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /tmp/buildd/python-r...x/py27/bin/python2.7 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 2 Running virtualenv with interpreter /usr/bin/python2.7 ERROR: InvocationError: /usr/bin/python3 -mvirtualenv --setuptools --python /usr/bin/python2.7 py27 (see /tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/log/py27-0.log) ___________________________________ summary ____________________________________ ERROR: py27: InvocationError: /usr/bin/python3 -mvirtualenv --setuptools --python /usr/bin/python2.7 py27 (see /tmp/buildd/python-ruffus-2.6~beta2/.tox/py27/log/py27-0.log) E: pybuild pybuild:256: test: plugin distutils failed with: exit code=1: cd '/tmp/buildd/python-ruffus-2.6~beta2/.pybuild/pythonX.Y_2.7/build'; tox -c '/tmp/buildd/python-ruffus-2.6~beta2'/tox.ini -e py27 dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit code 13 debian/rules:14: recipe for target 'build' failed make: *** [build] Error 13 The following lines look suspicious to me: cmdargs=['/usr/bin/python3', '-mvirtualenv', '--setuptools', '--python', '/usr/bin/python2.7', 'py27'] ... Downloading/unpacking setuptools Downloading/unpacking pip For the record: After noticing this "Downloading/unpacking" I added python-setuptools + python-pip to the Build-Depends with no change. If there is no simple answer to this problem I can commit my current code to git://anonscm.debian.org/debian-med/python-ruffus.git. Any help is welcome Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150310123225.gg31...@an3as.eu