New submission from Ned Batchelder <ned...@users.sourceforge.net>: If you set the environment variable DISTUTILS_DEBUG=1, distutils will run with DEBUG, which will trace internal activity. But one of the traces is incorrect, and leads to this stack trace:
Traceback (most recent call last): File "setup.py", line 116, in <module> **more_setup_args File "c:\python31\lib\distutils\core.py", line 123, in setup dist.parse_config_files() File "c:\python31\lib\distutils\dist.py", line 357, in parse_config_files self.announce(" reading", filename) File "c:\python31\lib\distutils\dist.py", line 911, in announce log.log(level, msg) File "c:\python31\lib\distutils\log.py", line 31, in log self._log(level, msg, args) File "c:\python31\lib\distutils\log.py", line 20, in _log if level >= self.threshold: TypeError: unorderable types: str() >= int() The fix is simple: at line 356 of dist.py, change: if DEBUG: self.announce(" reading", filename) to: if DEBUG: self.announce(" reading " + filename) ---------- assignee: tarek components: Distutils messages: 92916 nosy: nedbat, tarek severity: normal status: open title: DISTUTILS_DEBUG causes stack trace, really simple fix versions: Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6954> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com