Commit de4b9885 authored by Miro Hrončok's avatar Miro Hrončok

Define create_module()/exec_module() in VendorImporter

Fixes https://github.com/pypa/setuptools/issues/2481
parent 95a9c474
Define ``create_module()`` and ``exec_module()`` methods in ``VendorImporter``
to get rid of ``ImportWarning`` -- by :user:`hroncok`
......@@ -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.
......
......@@ -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.
......
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