Package: dh-python Version: 4.20200804 Severity: important Hi!
While trying to build cherryp3, I encountered this error:
dh clean --buildsystem pybuild --with python3,sphinxdoc
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:217: python3.8 setup.py clean
Traceback (most recent call last):
File "setup.py", line 124, in <module>
main()
File "setup.py", line 120, in main
setuptools.setup(**setup_params)
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line
162, in setup
_install_setup_requires(attrs)
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line
157, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 699, in
fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
779, in resolve
dist = best[req.key] = env.best_match(
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
1064, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
1076, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 758, in
fetch_build_egg
return fetch_build_egg(self, req)
File "/usr/lib/python3/dist-packages/setuptools/installer.py", line
83, in fetch_build_egg
raise DistutilsError('the `allow-hosts` option is not supported '
distutils.errors.DistutilsError: the `allow-hosts` option is not
supported when using pip to install requirements.
E: pybuild pybuild:352: clean: plugin distutils failed with: exit
code=1: python3.8 setup.py clean
dh_auto_clean: error: pybuild --clean --test-pytest -i python{version}
-p 3.8 returned exit code 13
It seems the `allow_hosts=None` option used to prevent automatic
download of dependencies has been deprecated since setuptools 42.0.0 [1].
I'm not sure there is a solution to replicate that behavior at the moment...
I was able to build cherryp3 by removing the "*_requires" lines in
setup.py, but that doesn't seem very clean.
Cheers,
[1]: https://github.com/pypa/setuptools/issues/1916
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ [email protected] / veronneau.org
⠈⠳⣄
signature.asc
Description: OpenPGP digital signature

