diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-19 21:36:33 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-19 21:40:52 -0400 |
commit | e371422476f51a83d27d70dc45bbfba1544aad55 (patch) | |
tree | 7ac4e9acc99b78835b3da2bde616ba4c452656b4 /setup.py | |
parent | 85a0a9026d1b40448d1757ca6cd75e5cc2c50fc6 (diff) | |
download | external_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-x | setup.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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) |