diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-01 16:58:40 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-01 16:58:52 -0400 |
| commit | a3319a388913facb5b9236c938ba9adabd5b9fdd (patch) | |
| tree | a2d70324d980ae53cd0293f662d9585cac92b23b | |
| parent | db378e28cc70ec4ed3c21dfbd255c9ea54a861c8 (diff) | |
| download | python-setuptools-git-a3319a388913facb5b9236c938ba9adabd5b9fdd.tar.gz | |
In distutils hack, use absolute import rather than relative to avoid bpo-30876. Fixes #2352.
| -rw-r--r-- | _distutils_hack/__init__.py | 2 | ||||
| -rw-r--r-- | changelog.d/2352.misc.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py index b8410e1f..2bc6df7a 100644 --- a/_distutils_hack/__init__.py +++ b/_distutils_hack/__init__.py @@ -80,7 +80,7 @@ class DistutilsMetaFinder: 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 diff --git a/changelog.d/2352.misc.rst b/changelog.d/2352.misc.rst new file mode 100644 index 00000000..79dda996 --- /dev/null +++ b/changelog.d/2352.misc.rst @@ -0,0 +1 @@ +In distutils hack, use absolute import rather than relative to avoid bpo-30876. |
