diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-29 11:31:51 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-29 11:33:08 -0500 |
commit | d0da0142609318e534d5874bfa0c44d1254f9e38 (patch) | |
tree | 0b4f964680930f3604735466301e52643eedceaa /setup.py | |
parent | b324f92d0a9583f07c137d29d4c68f2ae7fc4b68 (diff) | |
download | python-setuptools-git-d0da0142609318e534d5874bfa0c44d1254f9e38.tar.gz |
Restore 'add_shim' as the way to invoke the hook. Avoids compatibility issues between different versions of Setuptools with the distutils local implementation. Renamed the former 'add_shim' as 'insert_shim'. Fixes #2983
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').ensure_shim() + enabled and __import__('_distutils_hack').add_shim() """).lstrip().replace('\n', '; ') def initialize_options(self): |