diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 21:05:05 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 21:05:05 (GMT) |
commit | 115fdc614fcac8dbdf5547dbcb00e6399d766648 (patch) | |
tree | 041a12ac8cc07f83e5e8dac6e4ab36208cf2662b /Lib/distutils | |
parent | 4f2f1335a8f889ac071b01becf49b49032beb163 (diff) | |
download | cpython-115fdc614fcac8dbdf5547dbcb00e6399d766648.zip cpython-115fdc614fcac8dbdf5547dbcb00e6399d766648.tar.gz cpython-115fdc614fcac8dbdf5547dbcb00e6399d766648.tar.bz2 |
Define DEBUG as early as possible to avoid import problems.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/core.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index fbf5d51..8a348ce 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -12,6 +12,11 @@ __revision__ = "$Id$" import sys, os from types import * + +# If DISTUTILS_DEBUG is anything other than the empty string, we run in +# debug mode. +DEBUG = os.environ.get('DISTUTILS_DEBUG') + from distutils.errors import * from distutils.util import grok_environment_error @@ -32,11 +37,6 @@ usage: %(script)s [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: %(script)s cmd --help """ - -# If DISTUTILS_DEBUG is anything other than the empty string, we run in -# debug mode. -DEBUG = os.environ.get('DISTUTILS_DEBUG') - def gen_usage (script_name): script = os.path.basename(script_name) return USAGE % vars() |