From b6fcbbd00cb6d5607c9272dec452a50457bdb292 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 18 Nov 2021 21:18:26 -0500 Subject: [PATCH] Restore local distutils as the default. --- _distutils_hack/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py index 5f40996a67..0299a77976 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 c6affe9779..4cda3d3890 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', '; ')