mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-04 10:49:31 +01:00
use pkg_resources from setuptools-69.0.3
This commit is contained in:
11
lib/pkg_resources/extern/__init__.py
vendored
11
lib/pkg_resources/extern/__init__.py
vendored
@@ -58,7 +58,8 @@ class VendorImporter:
|
||||
"""Return a module spec for vendored names."""
|
||||
return (
|
||||
importlib.util.spec_from_loader(fullname, self)
|
||||
if self._module_matches_namespace(fullname) else None
|
||||
if self._module_matches_namespace(fullname)
|
||||
else None
|
||||
)
|
||||
|
||||
def install(self):
|
||||
@@ -69,5 +70,11 @@ class VendorImporter:
|
||||
sys.meta_path.append(self)
|
||||
|
||||
|
||||
names = 'packaging', 'pyparsing', 'appdirs'
|
||||
names = (
|
||||
'packaging',
|
||||
'platformdirs',
|
||||
'jaraco',
|
||||
'importlib_resources',
|
||||
'more_itertools',
|
||||
)
|
||||
VendorImporter(__name__, names).install()
|
||||
|
||||
Reference in New Issue
Block a user