tahoe-lafs/setuptools-0.6c16dev3.egg
Zooko O'Whielacronx 06a8b1ea84 pkg_resources: better error message on bad spec
Include the text of the offending distribution spec when it is ill-formed.

I got an error message from pkg_resources.py saying that a distribution spec
was ill-formed, because it ended with an '=' and nothing came after the '='.
However, the error message and stack trace didn't tell which distribution spec
it was.

With this patch, it includes the distribution spec itself in the error message.

There is no unit test of this patch, but I did test it manually by inserting a
"raise ValueError('WHATEVER')" into the code and re-running it and observing
that the new output correctly included the distribution
2012-11-22 17:09:41 +00:00
..
EGG-INFO Bundled zetuptoolz: bump version in EGG-INFO directory. 2010-11-28 10:42:42 -08:00
setuptools Bundled zetuptoolz: bump version to 0.6c16dev3. refs #1242 2010-11-28 10:31:02 -08:00
easy_install.py Bundled zetuptoolz: bump version to 0.6c16dev3. refs #1242 2010-11-28 10:31:02 -08:00
pkg_resources.py pkg_resources: better error message on bad spec 2012-11-22 17:09:41 +00:00
zetuptoolz.txt Bundled zetuptoolz: bump version to 0.6c16dev3. refs #1242 2010-11-28 10:31:02 -08:00