* Peter Eisentraut <pet...@debian.org>, 2011-07-18, 14:34:
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}.
FWIW, I maintain a package[0] that has entry points, but it doesn't have
runtime dependency on python-pkg-resources. (But then, I am a happy
non-user of dh_python2. :P)
[0] python-sphinx
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org