This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nedbat
Recipients nedbat, tarek
Date 2009-09-20.20:27:41
SpamBayes Score 9.0486594e-08
Marked as misclassified No
Message-id <1253478463.14.0.399738185505.issue6954@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-09-20 20:27:43nedbatsetrecipients: + nedbat, tarek
2009-09-20 20:27:43nedbatsetmessageid: <1253478463.14.0.399738185505.issue6954@psf.upfronthosting.co.za>
2009-09-20 20:27:41nedbatlinkissue6954 messages
2009-09-20 20:27:41nedbatcreate