aboutsummaryrefslogtreecommitdiffstats
path: root/debug.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-09-11 16:28:52 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2002-09-11 16:28:52 +0000
commitdfe0dcd95667389986923e0815e82009a3137729 (patch)
treea190de62751a24a0feac6bc7967d0f9086c09674 /debug.py
parent23ad69adc2c9dd95e91445962900405da7115026 (diff)
downloadexternal_python_setuptools-dfe0dcd95667389986923e0815e82009a3137729.tar.gz
external_python_setuptools-dfe0dcd95667389986923e0815e82009a3137729.tar.bz2
external_python_setuptools-dfe0dcd95667389986923e0815e82009a3137729.zip
Define DEBUG in a separate module to resolve circular references.
Diffstat (limited to 'debug.py')
-rw-r--r--debug.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug.py b/debug.py
new file mode 100644
index 00000000..7ca76d6c
--- /dev/null
+++ b/debug.py
@@ -0,0 +1,6 @@
+import os
+
+# If DISTUTILS_DEBUG is anything other than the empty string, we run in
+# debug mode.
+DEBUG = os.environ.get('DISTUTILS_DEBUG')
+