summaryrefslogtreecommitdiff
path: root/setuptools/_distutils/debug.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-07-03 15:11:32 -0400
committerGitHub <noreply@github.com>2020-07-03 15:11:32 -0400
commit5f151cbbcd6c65f7f48082bfaf36db3a55df936e (patch)
treeeb721c8957ee48c5149af6742a27a449fb618027 /setuptools/_distutils/debug.py
parenta9eb9e73def8ca6c469e59f1b008746e368ad4c1 (diff)
parenta877dab0bddaeb5503d871794ca06f1c81d805b8 (diff)
downloadpython-setuptools-git-5f151cbbcd6c65f7f48082bfaf36db3a55df936e.tar.gz
Merge branch 'master' into 2020-06-11-raise-from
Diffstat (limited to 'setuptools/_distutils/debug.py')
-rw-r--r--setuptools/_distutils/debug.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/_distutils/debug.py b/setuptools/_distutils/debug.py
new file mode 100644
index 00000000..daf1660f
--- /dev/null
+++ b/setuptools/_distutils/debug.py
@@ -0,0 +1,5 @@
+import os
+
+# If DISTUTILS_DEBUG is anything other than the empty string, we run in
+# debug mode.
+DEBUG = os.environ.get('DISTUTILS_DEBUG')