aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-05-03 12:34:02 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-05-03 12:34:02 -0400
commit95a68afdf62f63e044f600ab87a4410db6bdf128 (patch)
treedcf463a2a50a53413d1ff5374467e68b1e9e00e7 /setuptools/dist.py
parentcd79379c95051b94a7facf56ac09c99f7cd31da0 (diff)
downloadexternal_python_setuptools-95a68afdf62f63e044f600ab87a4410db6bdf128.tar.gz
external_python_setuptools-95a68afdf62f63e044f600ab87a4410db6bdf128.tar.bz2
external_python_setuptools-95a68afdf62f63e044f600ab87a4410db6bdf128.zip
Render the error message as a single line without a period (for consistency with other usage).
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 892044dd..05669366 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -123,13 +123,11 @@ def check_requirements(dist, attr, value):
try:
list(pkg_resources.parse_requirements(value))
except (TypeError, ValueError) as e:
- raise DistutilsSetupError(
+ tmpl = (
"%r must be a string or list of strings "
- "containing valid project/version requirement specifiers.\n"
- "%s"
- % (attr, e)
+ "containing valid project/version requirement specifiers; %s"
)
-
+ raise DistutilsSetupError(tmpl % (attr, e))
def check_entry_points(dist, attr, value):
"""Verify that entry_points map is parseable"""