Re: Somehow some dh_auto_test of Python3 packages insist to install wheel via pip
On 12/23/21 3:57 PM, Andreas Tille wrote: Am Thu, Dec 23, 2021 at 12:13:57PM +0200 schrieb Andrius Merkys: Is Python package providing 'xmlschema' installed? To me this seems like setup.py attempts to install missing dependencies. diff --git a/debian/control b/debian/control - python3-wheel , + python3-xmlschema , pylint, does not help, thought. It certainly does change the error to $something-else, FWIW. | WARNING: The wheel package is not available. | /usr/bin/python3.10: No module named pip | error: Command '['/usr/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpjsi3yav8', '--quiet', 'pbtestdata']' returned non-zero exit status 1. You need to add this one to B-D (provided it is packaged) Nilesh
Re: Somehow some dh_auto_test of Python3 packages insist to install wheel via pip
On 2021-12-23 12:27, Andreas Tille wrote: > This change > > diff --git a/debian/control b/debian/control > index faadcf3..5f9cfbd 100644 > --- a/debian/control > +++ b/debian/control > @@ -18,7 +18,7 @@ Build-Depends: debhelper-compat (= 12), > python3-pytest-xdist , > python3-pytest-cov , > python3-biopython (>= 1.74) , > - python3-wheel , > + python3-xmlschema , > pylint, > python3-coverage > Standards-Version: 4.5.0 > > > does not help, thought. I have added 'python3-xmlschema ' as shown and failure message changed to: error: Command '['/usr/bin/python3.9', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp3c4ogdyz', '--quiet', 'pbtestdata']' returned non-zero exit status 1. So it seems python3-xmlschema was needed after all. Now build fails due to missing dependency on python3-pbtestdata. Best, Andrius
Re: Somehow some dh_auto_test of Python3 packages insist to install wheel via pip
Am Thu, Dec 23, 2021 at 12:13:57PM +0200 schrieb Andrius Merkys: > Hi Andreas, > > On 2021-12-23 12:09, Andreas Tille wrote: > > error: Command '['/usr/bin/python3.10', '-m', 'pip', > > '--disable-pip-version-check', 'wheel', '--no-deps', '-w', > > '/tmp/tmp89sdjpdu', '--quiet', 'xmlschema']' returned non-zero exit status > > 1. > > Is Python package providing 'xmlschema' installed? To me this seems like > setup.py attempts to install missing dependencies. > > Hope this helps, This change diff --git a/debian/control b/debian/control index faadcf3..5f9cfbd 100644 --- a/debian/control +++ b/debian/control @@ -18,7 +18,7 @@ Build-Depends: debhelper-compat (= 12), python3-pytest-xdist , python3-pytest-cov , python3-biopython (>= 1.74) , - python3-wheel , + python3-xmlschema , pylint, python3-coverage Standards-Version: 4.5.0 does not help, thought. Kind regards Andreas. -- http://fam-tille.de
Re: Somehow some dh_auto_test of Python3 packages insist to install wheel via pip
Hi Andreas, On 2021-12-23 12:09, Andreas Tille wrote: > error: Command '['/usr/bin/python3.10', '-m', 'pip', > '--disable-pip-version-check', 'wheel', '--no-deps', '-w', > '/tmp/tmp89sdjpdu', '--quiet', 'xmlschema']' returned non-zero exit status 1. Is Python package providing 'xmlschema' installed? To me this seems like setup.py attempts to install missing dependencies. Hope this helps, Andrius
Somehow some dh_auto_test of Python3 packages insist to install wheel via pip
Hi, seems python-pbcore is just an example[1] for the issue: ... dh_auto_test I: pybuild base:237: python3.10 setup.py test /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running pytest /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. /usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( /usr/bin/python3.10: No module named pip error: Command '['/usr/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp89sdjpdu', '--quiet', 'xmlschema']' returned non-zero exit status 1. which I've also faced in the case of deepdiff[2]. Any idea what might be wrong here? Kind regards Andreas. [1] https://salsa.debian.org/med-team/python-pbcore/-/pipelines/330517 [2] https://salsa.debian.org/python-team/packages/deepdiff -- http://fam-tille.de