diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-05-03 12:34:02 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-05-03 12:34:02 -0400 |
commit | 95a68afdf62f63e044f600ab87a4410db6bdf128 (patch) | |
tree | dcf463a2a50a53413d1ff5374467e68b1e9e00e7 | |
parent | cd79379c95051b94a7facf56ac09c99f7cd31da0 (diff) | |
download | external_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).
-rw-r--r-- | setuptools/dist.py | 8 |
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""" |