From 55e2134a4ac896210d93ba7079cb70ace43f4f3b Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 23 Dec 2021 13:50:36 -0500 Subject: In distutils_hack, only add the metadata finder once. In ensure_local_distutils, rely on a context manager for reliable manipulation. Fixes #2958. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') 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): -- cgit v1.2.1