Thomas Heller wrote:
IMO this behaviour is not helpful, and the DISTUTILS_DEBUG variable is undocumented.
In which way should this be changed?
I believe the motivation for this was simply to reduce the depth of tracebacks; consider an administrator who doesn't know much about Python and is trying to install a package. If they get a big long traceback from deep inside the guts of Distutils, they may think the package or the Python installation is broken because they don't read all the way down to the bottom and see that it's a permission problem.
I suggest just documenting the DISTUTILS_DEBUG variable, but otherwise leaving this alone.
Suggested patch submitted as http://www.python.org/sf/761401. Thomas