Commit 48e250ad authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2361 from vstinner/master

Add Python 3.10 support to _distutils_hack
parents 80de55d7 df8c341b
......@@ -74,9 +74,10 @@ class DistutilsMetaFinder:
return method()
def spec_for_distutils(self):
import importlib.abc
import importlib.util
class DistutilsLoader(importlib.util.abc.Loader):
class DistutilsLoader(importlib.abc.Loader):
def create_module(self, spec):
return importlib.import_module('._distutils', 'setuptools')
......
Add Python 3.10 support to _distutils_hack. Get the 'Loader' abstract class
from importlib.abc rather than importlib.util.abc (alias removed in Python
3.10).
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