summaryrefslogtreecommitdiff
path: root/setuptools/dist.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index ffbc7c48..220bcf8c 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -122,11 +122,15 @@ def check_requirements(dist, attr, value):
"""Verify that install_requires is a valid requirements list"""
try:
list(pkg_resources.parse_requirements(value))
- except (TypeError,ValueError):
+ except (TypeError, ValueError) as e:
raise DistutilsSetupError(
"%r must be a string or list of strings "
- "containing valid project/version requirement specifiers" % (attr,)
+ "containing valid project/version requirement specifiers.\n"
+ "Error: %s"
+ % (attr, ' '.join(e.args))
)
+
+
def check_entry_points(dist, attr, value):
"""Verify that entry_points map is parseable"""
try: