Package: python
Version: 2.6.6-14
Severity: wishlist
Since dh_python2 is now automatically detecting package dependencies
from egg-info data, I figured it would be appropriate to lodge this
request:
When you use the entry_points argument of setup(), Python scripts for
/usr/bin are automatically generated. These scripts import
pkg_resources, and therefore the containing package should have a
run-time dependency on python-pkg-resources. In my experience, this
is easy to forget and it's not really documented, because when you use
easy_install, python-setuptools depends on python-pkg-resources
anyway, so you don't really need to worry about it. Only when you use
Debian packages and uninstall python-pkg-resources (because
apt/aptitude tell you it's no longer needed), things start to break.
Perhaps dh_python2 could simply look whether
*.egg-info/entry_points.txt exists, and if so add python-pkg-resources
to ${python:Depends}.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]