On Tue, Sep 29, 2026 at 11:07:07PM +0000, Santiago Vila wrote:
PYTHONPATH=/<<PKGBUILDDIR>> help2man -N --version-string=0.10.2 -o py2dsc.1 -n 'creates
Debian source package from Python package'
/<<PKGBUILDDIR>>/debian/python3-stdeb/usr/bin/py2dsc
help2man: can't get `--help' info from
/<<PKGBUILDDIR>>/debian/python3-stdeb/usr/bin/py2dsc
Try `--no-discard-stderr' if option outputs to stderr
make[1]: *** [debian/rules:15: py2dsc.1] Error 1
In case anyone else is wondering, this is because stdeb tries to use
pkg_resources:
root@sbuild:/build/reproducible-path/stdeb-0.10.2#
PYTHONPATH=/build/reproducible-path/stdeb-0.10.2
/build/reproducible-path/stdeb-0.10.2/debian/python3-stdeb/usr/bin/py2dsc >
Traceback (most recent call last):
File "/build/reproducible-path/stdeb-0.10.2/debian/python3-stdeb/usr/bin/py2dsc",
line 3, in <module>
import stdeb.cli_runner
File "/build/reproducible-path/stdeb-0.10.2/stdeb/cli_runner.py", line 13, in
<module>
from pkg_resources import Requirement, Distribution # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pkg_resources'
--
Colin Watson (he/him) [[email protected]]