mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[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
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +145,7 @@ def setup (**attrs):
|
|||
else:
|
||||
raise SystemExit, error
|
||||
|
||||
except (DistutilsExecError,
|
||||
DistutilsFileError,
|
||||
DistutilsOptionError,
|
||||
except (DistutilsError,
|
||||
CCompilerError), msg:
|
||||
if DEBUG:
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue