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
de4b9885
Commit
de4b9885
authored
Dec 30, 2020
by
Miro Hrončok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define create_module()/exec_module() in VendorImporter
Fixes
https://github.com/pypa/setuptools/issues/2481
parent
95a9c474
Changes
3
Hide 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 @
de4b9885
Define ``create_module()`` and ``exec_module()`` methods in ``VendorImporter``
to get rid of ``ImportWarning`` -- by :user:`hroncok`
pkg_resources/extern/__init__.py
View file @
de4b9885
...
...
@@ -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 @
de4b9885
...
...
@@ -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