danse/setup_requirements — Issue #3: Use valid identifiers for modules
Author: danse
Created: 2012-02-22 11:52:16+00:00
State: open

Using this module, when a script is created with setuptools entry points, the script start will fail, because the requirements.txt file into egg info will contain random generated module identifiers.

Traceback (most recent call last):
File "... bin/granpa", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: 361544

A solution would be to use module identifiers corresponding to module names, but the default behavior for pip is to search first the pypi, so the provided url could be ignored.