summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/core.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-09-11 16:31:53 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-09-11 16:31:53 (GMT)
commitfcd7353863c024bb87aabe7c4639ca8df692ac85 (patch)
tree8e25bd5d72391ff8ab8be6f6e381a1f356c8b901 /Lib/distutils/core.py
parent5f6228ed461987709c75dd3ebd253beb412ed457 (diff)
downloadcpython-fcd7353863c024bb87aabe7c4639ca8df692ac85.zip
cpython-fcd7353863c024bb87aabe7c4639ca8df692ac85.tar.gz
cpython-fcd7353863c024bb87aabe7c4639ca8df692ac85.tar.bz2
Use distutils.debug.DEBUG instead of distutils.core.DEBUG.
Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r--Lib/distutils/core.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 8a348ce..9a6bff6 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -13,10 +13,7 @@ __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.debug import DEBUG
from distutils.errors import *
from distutils.util import grok_environment_error
@@ -25,7 +22,6 @@ from distutils.dist import Distribution
from distutils.cmd import Command
from distutils.extension import Extension
-
# This is a barebones help message generated displayed when the user
# runs the setup script with no arguments at all. More useful help
# is generated with various --help options: global help, list commands,