diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-18 21:18:26 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-18 21:18:26 -0500 |
| commit | b6fcbbd00cb6d5607c9272dec452a50457bdb292 (patch) | |
| tree | 1d513787b46225a2cec131e38a868c2439aae0a3 | |
| parent | 413357393b74acd7f8bd02075a0f7ce8c239b869 (diff) | |
| download | python-setuptools-git-b6fcbbd00cb6d5607c9272dec452a50457bdb292.tar.gz | |
Restore local distutils as the default.
| -rw-r--r-- | _distutils_hack/__init__.py | 2 | ||||
| -rwxr-xr-x | setup.py | 2 |
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' @@ -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', '; ') |
