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
6ad2fb0b
Commit
6ad2fb0b
authored
Jan 16, 2021
by
Jason R. Coombs
Committed by
GitHub
Jan 16, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2517 from hroncok/load_module
Define create_module()/exec_module() in VendorImporter
parents
470dd358
de4b9885
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
changelog.d/2481.change.rst
changelog.d/2481.change.rst
+2
-0
pkg_resources/extern/__init__.py
pkg_resources/extern/__init__.py
+6
-0
setuptools/extern/__init__.py
setuptools/extern/__init__.py
+6
-0
No files found.
changelog.d/2481.change.rst
0 → 100644
View file @
6ad2fb0b
Define ``create_module()`` and ``exec_module()`` methods in ``VendorImporter``
to get rid of ``ImportWarning`` -- by :user:`hroncok`
pkg_resources/extern/__init__.py
View file @
6ad2fb0b
...
...
@@ -54,6 +54,12 @@ class VendorImporter:
"distribution."
.
format
(
**
locals
())
)
def
create_module
(
self
,
spec
):
return
self
.
load_module
(
spec
.
name
)
def
exec_module
(
self
,
module
):
pass
def
install
(
self
):
"""
Install this importer into sys.meta_path if not already present.
...
...
setuptools/extern/__init__.py
View file @
6ad2fb0b
...
...
@@ -54,6 +54,12 @@ class VendorImporter:
"distribution."
.
format
(
**
locals
())
)
def
create_module
(
self
,
spec
):
return
self
.
load_module
(
spec
.
name
)
def
exec_module
(
self
,
module
):
pass
def
install
(
self
):
"""
Install this importer into sys.meta_path if not already present.
...
...
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