summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-12-23 13:50:36 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-12-23 13:51:01 -0500
commit55e2134a4ac896210d93ba7079cb70ace43f4f3b (patch)
tree48c9d30bf8c09f39d02ac18b00ac7351ea62014c /setup.py
parent28f1d4751aedb1c36bec85554606eb12e4ab044d (diff)
downloadpython-setuptools-git-55e2134a4ac896210d93ba7079cb70ace43f4f3b.tar.gz
In distutils_hack, only add the metadata finder once. In ensure_local_distutils, rely on a context manager for reliable manipulation. Fixes #2958.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 4cda3d38..d15189db 100755
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ class install_with_pth(install):
import os
var = 'SETUPTOOLS_USE_DISTUTILS'
enabled = os.environ.get(var, 'local') == 'local'
- enabled and __import__('_distutils_hack').add_shim()
+ enabled and __import__('_distutils_hack').ensure_shim()
""").lstrip().replace('\n', '; ')
def initialize_options(self):