diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-23 13:50:36 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-23 13:51:01 -0500 |
commit | 55e2134a4ac896210d93ba7079cb70ace43f4f3b (patch) | |
tree | 48c9d30bf8c09f39d02ac18b00ac7351ea62014c /setup.py | |
parent | 28f1d4751aedb1c36bec85554606eb12e4ab044d (diff) | |
download | python-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-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): |