summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-08-20 21:40:53 -0400
committerGitHub <noreply@github.com>2020-08-20 21:40:53 -0400
commite20e85ed73fcf4cd127f11c0c2aaa1cbdb8cfbac (patch)
treec1cc25c3fc2ce279c113cacbd48256d5f6e09612 /setup.py
parent8d508965e49028b68e09b930a10340ba09687d35 (diff)
parent3d404fd3268b0fb7d84916779ca2e282f4586396 (diff)
downloadpython-setuptools-git-e20e85ed73fcf4cd127f11c0c2aaa1cbdb8cfbac.tar.gz
Merge pull request #2255 from pypa/bugfix/2232-adopt-distutils-default
Re-enable distutils patch by default.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 5d98c029..34654e19 100755
--- a/setup.py
+++ b/setup.py
@@ -99,7 +99,8 @@ class install_with_pth(install):
_pth_name = 'distutils-precedence'
_pth_contents = textwrap.dedent("""
import os
- enabled = os.environ.get('SETUPTOOLS_USE_DISTUTILS') == 'local'
+ var = 'SETUPTOOLS_USE_DISTUTILS'
+ enabled = os.environ.get(var, 'local') == 'local'
enabled and __import__('_distutils_hack').add_shim()
""").lstrip().replace('\n', '; ')