summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-11-18 21:18:26 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-11-18 21:18:26 -0500
commitb6fcbbd00cb6d5607c9272dec452a50457bdb292 (patch)
tree1d513787b46225a2cec131e38a868c2439aae0a3
parent413357393b74acd7f8bd02075a0f7ce8c239b869 (diff)
downloadpython-setuptools-git-b6fcbbd00cb6d5607c9272dec452a50457bdb292.tar.gz
Restore local distutils as the default.
-rw-r--r--_distutils_hack/__init__.py2
-rwxr-xr-xsetup.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py
index 5f40996a..0299a779 100644
--- a/_distutils_hack/__init__.py
+++ b/_distutils_hack/__init__.py
@@ -42,7 +42,7 @@ def enabled():
"""
Allow selection of distutils by environment variable.
"""
- which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
return which == 'local'
diff --git a/setup.py b/setup.py
index c6affe97..4cda3d38 100755
--- a/setup.py
+++ b/setup.py
@@ -54,7 +54,7 @@ class install_with_pth(install):
_pth_contents = textwrap.dedent("""
import os
var = 'SETUPTOOLS_USE_DISTUTILS'
- enabled = os.environ.get(var, 'stdlib') == 'local'
+ enabled = os.environ.get(var, 'local') == 'local'
enabled and __import__('_distutils_hack').add_shim()
""").lstrip().replace('\n', '; ')