summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2014-03-13 08:55:35 (GMT)
committerÉric Araujo <merwok@netwok.org>2014-03-13 08:55:35 (GMT)
commit45fc8713bda1bfd6c0de3c6f493a4eeff52acbe3 (patch)
tree13effb36b719b9563f8187249511b43ed03c4374 /Misc
parent966f2fca5fbf4d8d1196bc0014be4e9f7d4d2c10 (diff)
downloadcpython-45fc8713bda1bfd6c0de3c6f493a4eeff52acbe3.zip
cpython-45fc8713bda1bfd6c0de3c6f493a4eeff52acbe3.tar.gz
cpython-45fc8713bda1bfd6c0de3c6f493a4eeff52acbe3.tar.bz2
Make distutils error messages more helpful (#11599).
When running external programs such as a C compiler and getting an error code, distutils only prints the program name. With this change, one can get the full command line by setting the DISTUTILS_DEBUG environment variable. This should have no compatibility issues, unless there are tools that depend on the exact format of distutils debug messages.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 1dce0ea..253c850 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -16,6 +16,10 @@ Library
- Issue #20875: Prevent possible gzip "'read' is not defined" NameError.
Patch by Claudiu Popa.
+- Issue #11599: When an external command (e.g. compiler) fails, distutils now
+ prints out the whole command line (instead of just the command name) if the
+ environment variable DISTUTILS_DEBUG is set.
+
- Issue #4931: distutils should not produce unhelpful "error: None" messages
anymore. distutils.util.grok_environment_error is kept but doc-deprecated.