Package: dh-python Version: 4.20200315 Severity: normal Dear Maintainer,
I have python3-pip installed, but, in any python3 project I have that uses tox and has deps can't seem to be handled by dh-python. Here's an example: $ python3 -m pip show # let's show that pip is instapped ERROR: Please provide a package name or names. $ cat tox.ini [tox] envlist = py37 [testenv] deps = pytest $ tox|tail -3 ___________________________________ summary ____________________________________ py37: commands succeeded congratulations :) $ sudo pybuild --test-tox I: pybuild base:217: python3.7 setup.py clean running clean removing '/tmp/test/.pybuild/cpython3_3.7/build' (and everything under it) 'build/bdist.linux-amd64' does not exist -- can't clean it 'build/scripts-3.7' does not exist -- can't clean it I: pybuild base:217: python3.7 setup.py config running config I: pybuild base:217: /usr/bin/python3 setup.py build running build running build_py creating /tmp/test/.pybuild/cpython3_3.7/build/test copying test/__init__.py -> /tmp/test/.pybuild/cpython3_3.7/build/test I: pybuild base:217: /usr/bin/python3 setup.py install --root /tmp/test/debian/tmp running install running build running build_py running install_lib copying /tmp/test/.pybuild/cpython3_3.7/build/test/__init__.py -> /tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/test byte-compiling /tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/test/__init__.py to __init__.cpython-37.pyc running install_egg_info running egg_info writing example_pkg_YOUR_USERNAME_HERE.egg-info/PKG-INFO writing dependency_links to example_pkg_YOUR_USERNAME_HERE.egg-info/dependency_links.txt writing top-level names to example_pkg_YOUR_USERNAME_HERE.egg-info/top_level.txt reading manifest file 'example_pkg_YOUR_USERNAME_HERE.egg-info/SOURCES.txt' writing manifest file 'example_pkg_YOUR_USERNAME_HERE.egg-info/SOURCES.txt' removing '/tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/example_pkg_YOUR_USERNAME_HERE-0.0.1.egg-info' (and everything under it) Copying example_pkg_YOUR_USERNAME_HERE.egg-info to /tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/example_pkg_YOUR_USERNAME_HERE-0.0.1.egg-info Skipping SOURCES.txt running install_scripts I: pybuild base:217: cd /tmp/test/.pybuild/cpython3_3.7/build; tox -c /tmp/test/tox.ini -e py37 GLOB sdist-make: /tmp/test/setup.py py37 create: /tmp/test/.tox/py37 py37 installdeps: pytest WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration. ERROR: invocation failed (exit code 1), logfile: /tmp/test/.tox/py37/log/py37-1.log ERROR: actionid: py37 msg: getenv cmdargs: '/tmp/test/.tox/py37/bin/python -m pip install pytest' /tmp/test/.tox/py37/bin/python: No module named pip ERROR: could not install deps [pytest]; v = InvocationError('/tmp/test/.tox/py37/bin/python -m pip install pytest (see /tmp/test/.tox/py37/log/py37-1.log)', 1) ___________________________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________________________ ERROR: py37: could not install deps [pytest]; v = InvocationError('/tmp/test/.tox/py37/bin/python -m pip install pytest (see /tmp/test/.tox/py37/log/py37-1.log)', 1) E: pybuild pybuild:390: plugin distutils failed: exit code=1: cd /tmp/test/.pybuild/cpython3_3.7/build; tox -c /tmp/test/tox.ini -e py37 $ I'm sorry if this is not a bug, and I'm the one doing something wrong... if that is the case, can you point me to the correct direction? :-) -- System Information: Debian Release: buster/sid APT prefers eoan-updates APT policy: (500, 'eoan-updates'), (500, 'eoan-security'), (500, 'eoan'), (100, 'eoan-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.3.0-46-generic (SMP w/8 CPU cores) Kernel taint flags: TAINT_WARN Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dh-python depends on: ii python3 3.7.5-1 ii python3-distutils 3.7.5-1build1 dh-python recommends no packages. Versions of packages dh-python suggests: ii dpkg-dev 1.19.7ubuntu2 ii libdpkg-perl 1.19.7ubuntu2 -- no debconf information Best regards, -- Marcos Marado