Commit c5268b3d authored by Greg Ward's avatar Greg Ward

Catch DistutilSetupError from the Distribution constructor.

parent 821ff992
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment