diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-03 04:54:40 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-03 04:54:40 -0400 |
commit | 97192962e89a24a02effd1f7a541108335517253 (patch) | |
tree | 4057aeefb3d919e8af7b4d9a8ccde3dde3fe8046 | |
parent | bb9fb1fcfe37c1ef1e29e1e6d1fc4e483c743380 (diff) | |
download | external_python_setuptools-97192962e89a24a02effd1f7a541108335517253.tar.gz external_python_setuptools-97192962e89a24a02effd1f7a541108335517253.tar.bz2 external_python_setuptools-97192962e89a24a02effd1f7a541108335517253.zip |
Ensure the module is named 'distutils'. Avoids errors when distutils.log and setuptools._distutils.log are two separate modules with separate state.
-rw-r--r-- | setuptools/distutils_patch.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setuptools/distutils_patch.py b/setuptools/distutils_patch.py index 06eed82f..b2095fba 100644 --- a/setuptools/distutils_patch.py +++ b/setuptools/distutils_patch.py @@ -23,6 +23,7 @@ def clear_distutils(): def ensure_local_distutils(): clear_distutils() distutils = importlib.import_module('setuptools._distutils') + distutils.__name__ = 'distutils' sys.modules['distutils'] = distutils # sanity check that submodules load as expected |