[Bug #233259] Ugly traceback for DistutilsPlatformError
Fixed by catching all exceptions that are subclasses of DistutilsError, so only the error message will be printed. You can still get the whole traceback by enabling the Distutils debugging mode.
This commit is contained in:
parent
706867c20c
commit
91e77536e8
|
@ -145,9 +145,7 @@ def setup (**attrs):
|
||||||
else:
|
else:
|
||||||
raise SystemExit, error
|
raise SystemExit, error
|
||||||
|
|
||||||
except (DistutilsExecError,
|
except (DistutilsError,
|
||||||
DistutilsFileError,
|
|
||||||
DistutilsOptionError,
|
|
||||||
CCompilerError), msg:
|
CCompilerError), msg:
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue