aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-07-19 21:36:33 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-07-19 21:40:52 -0400
commite371422476f51a83d27d70dc45bbfba1544aad55 (patch)
tree7ac4e9acc99b78835b3da2bde616ba4c452656b4 /setup.py
parent85a0a9026d1b40448d1757ca6cd75e5cc2c50fc6 (diff)
downloadexternal_python_setuptools-e371422476f51a83d27d70dc45bbfba1544aad55.tar.gz
external_python_setuptools-e371422476f51a83d27d70dc45bbfba1544aad55.tar.bz2
external_python_setuptools-e371422476f51a83d27d70dc45bbfba1544aad55.zip
Consolidate distutils importing hacks into _distutils_importer package. Generate distutils-precedence.pth inline.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index cba37d3e..a6e1abc4 100755
--- a/setup.py
+++ b/setup.py
@@ -94,12 +94,8 @@ class install_with_pth(install):
def initialize_options(self):
install.initialize_options(self)
-
- name = 'distutils_precedence'
- with open(os.path.join(here, name + '.pth'), 'rt') as f:
- contents = f.read()
-
- self.extra_path = (name, contents)
+ self.extra_path = (
+ 'distutils-precedence', 'import _distutils_importer.install')
def finalize_options(self):
install.finalize_options(self)