Skip to content

Commit

Permalink
In distutils hack, use absolute import rather than relative to avoid …
Browse files Browse the repository at this point in the history
…bpo-30876. Fixes #2352.
  • Loading branch information
jaraco committed Sep 1, 2020
1 parent db378e2 commit a3319a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _distutils_hack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def spec_for_distutils(self):
class DistutilsLoader(importlib.abc.Loader):

def create_module(self, spec):
return importlib.import_module('._distutils', 'setuptools')
return importlib.import_module('setuptools._distutils')

def exec_module(self, module):
pass
Expand Down
1 change: 1 addition & 0 deletions changelog.d/2352.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In distutils hack, use absolute import rather than relative to avoid bpo-30876.

0 comments on commit a3319a3

Please sign in to comment.