Commit 1e3c63b2 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2369 from pypa/bugfix/2352-relative-import-distutils-hack

In distutils hack, use absolute import rather than relative to avoid bpo-30876.
parents db378e28 a3319a38
...@@ -80,7 +80,7 @@ class DistutilsMetaFinder: ...@@ -80,7 +80,7 @@ class DistutilsMetaFinder:
class DistutilsLoader(importlib.abc.Loader): class DistutilsLoader(importlib.abc.Loader):
def create_module(self, spec): def create_module(self, spec):
return importlib.import_module('._distutils', 'setuptools') return importlib.import_module('setuptools._distutils')
def exec_module(self, module): def exec_module(self, module):
pass pass
......
In distutils hack, use absolute import rather than relative to avoid bpo-30876.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment