summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-12-29 11:31:51 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-12-29 11:33:08 -0500
commitd0da0142609318e534d5874bfa0c44d1254f9e38 (patch)
tree0b4f964680930f3604735466301e52643eedceaa /setup.py
parentb324f92d0a9583f07c137d29d4c68f2ae7fc4b68 (diff)
downloadpython-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-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index d15189db..4cda3d38 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').ensure_shim()
+ enabled and __import__('_distutils_hack').add_shim()
""").lstrip().replace('\n', '; ')
def initialize_options(self):