Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
48e250ad
Commit
48e250ad
authored
Sep 01, 2020
by
Jason R. Coombs
Committed by
GitHub
Sep 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2361 from vstinner/master
Add Python 3.10 support to _distutils_hack
parents
80de55d7
df8c341b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
_distutils_hack/__init__.py
_distutils_hack/__init__.py
+2
-1
changelog.d/2361.change.rst
changelog.d/2361.change.rst
+3
-0
No files found.
_distutils_hack/__init__.py
View file @
48e250ad
...
@@ -74,9 +74,10 @@ class DistutilsMetaFinder:
...
@@ -74,9 +74,10 @@ class DistutilsMetaFinder:
return
method
()
return
method
()
def
spec_for_distutils
(
self
):
def
spec_for_distutils
(
self
):
import
importlib.abc
import
importlib.util
import
importlib.util
class
DistutilsLoader
(
importlib
.
util
.
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
(
'._distutils'
,
'setuptools'
)
...
...
changelog.d/2361.change.rst
0 → 100644
View file @
48e250ad
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).
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment