[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.
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 001e74b..5196145 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -145,9 +145,7 @@
else:
raise SystemExit, error
- except (DistutilsExecError,
- DistutilsFileError,
- DistutilsOptionError,
+ except (DistutilsError,
CCompilerError), msg:
if DEBUG:
raise