summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 6242775..bd9b854 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -112,10 +112,10 @@ def setup (**attrs):
_setup_distribution = dist = klass(attrs)
except DistutilsSetupError as msg:
if 'name' not in attrs:
+ raise SystemExit, "error in setup command: %s" % msg
+ else:
raise SystemExit, "error in %s setup command: %s" % \
(attrs['name'], msg)
- else:
- raise SystemExit, "error in setup command: %s" % msg
if _setup_stop_after == "init":
return dist