summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/distutils/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 2bad10e..8bcf2a8 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -80,7 +80,10 @@ def setup (**attrs):
# Create the Distribution instance, using the remaining arguments
# (ie. everything except distclass) to initialize it
- dist = klass (attrs)
+ try:
+ dist = klass (attrs)
+ except DistutilsSetupError, msg:
+ raise SystemExit, "error in setup script: %s" % msg
# Find and parse the config file(s): they will override options from
# the setup script, but be overridden by the command line.