annotate Lib/distutils/debug.py @ 28646:193b8aec00ce legacy-trunk

Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to work. This includes some more code that used to be part of pgen in the main parser; I'm okay with that. I'll see if the Windows build needs work next.
author Guido van Rossum <guido@python.org>
date Thu, 17 Apr 2003 14:55:42 +0000
parents 42bfc98d295b
children c3a096bfbd6b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25210
76768adb6f23 Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
1 import os
76768adb6f23 Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
2
26285
42bfc98d295b Add comment to Distutil files about requiring 1.5.2 compatibility, as
Andrew M. Kuchling <amk@amk.ca>
parents: 25210
diff changeset
3 # This module should be kept compatible with Python 1.5.2.
42bfc98d295b Add comment to Distutil files about requiring 1.5.2 compatibility, as
Andrew M. Kuchling <amk@amk.ca>
parents: 25210
diff changeset
4
42bfc98d295b Add comment to Distutil files about requiring 1.5.2 compatibility, as
Andrew M. Kuchling <amk@amk.ca>
parents: 25210
diff changeset
5 __revision__ = "$Id$"
42bfc98d295b Add comment to Distutil files about requiring 1.5.2 compatibility, as
Andrew M. Kuchling <amk@amk.ca>
parents: 25210
diff changeset
6
25210
76768adb6f23 Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
7 # If DISTUTILS_DEBUG is anything other than the empty string, we run in
76768adb6f23 Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
8 # debug mode.
76768adb6f23 Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
9 DEBUG = os.environ.get('DISTUTILS_DEBUG')
76768adb6f23 Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff changeset
10