Hi Andreas (2018.08.01_12:39:56_-0400) > should dh_python{,3} generate a dependency on python{,3}-pkg-resources > if needed? > > There are a lot of packages in the archive using a construct like > > $ cat /usr/bin/thonny > #!/usr/bin/python3 > # EASY-INSTALL-ENTRY-SCRIPT: 'thonny==2.1.17','gui_scripts','thonny' > __requires__ = 'thonny==2.1.17' > import re > import sys > from pkg_resources import load_entry_point > > if __name__ == '__main__': > sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) > sys.exit( > load_entry_point('thonny==2.1.17', 'gui_scripts', 'thonny')() > )
Technically, packages using that should have specified setuptools as a requirement, which we'd translate to pkg-resources, through our pydist file. I agree, these were very common missing requirements. However, these days setuptools uses importlib.metadata in entry points (since setuptools 47.2, with Python 3.8), so maybe this is less of an issue these days? I'm leaning towards wontfix, given that. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272