mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Catch DistutilSetupError from the Distribution constructor.
This commit is contained in:
parent
82d71cacb0
commit
3985151642
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user