Kaydet (Commit) 2c8fef07 authored tarafından Collin Winter's avatar Collin Winter

Fix a bug in distutils.core's error handling.

üst e63bae6b
......@@ -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
......
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