summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-01-23 02:39:00 (GMT)
committerGitHub <noreply@github.com>2022-01-23 02:39:00 (GMT)
commit443dec6c9a104386ee90165d32fb28d0c5d29043 (patch)
tree90a2b40bff98acd948610fa7192247ff4d1cbba5 /Lib/importlib
parentd888ff5381594641126065e78dc9210dae4436a4 (diff)
downloadcpython-443dec6c9a104386ee90165d32fb28d0c5d29043.zip
cpython-443dec6c9a104386ee90165d32fb28d0c5d29043.tar.gz
cpython-443dec6c9a104386ee90165d32fb28d0c5d29043.tar.bz2
bpo-46474: Apply changes from importlib_metadata 4.10.0 (GH-30802)
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/metadata/__init__.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/importlib/metadata/__init__.py b/Lib/importlib/metadata/__init__.py
index d44541f..5ef6d9d 100644
--- a/Lib/importlib/metadata/__init__.py
+++ b/Lib/importlib/metadata/__init__.py
@@ -571,18 +571,6 @@ class Distribution:
)
return filter(None, declared)
- @classmethod
- def _local(cls, root='.'):
- from pep517 import build, meta
-
- system = build.compat_system(root)
- builder = functools.partial(
- meta.build,
- source_dir=root,
- system=system,
- )
- return PathDistribution(zipfile.Path(meta.build_as_zip(builder)))
-
@property
def metadata(self) -> _meta.PackageMetadata:
"""Return the parsed metadata for this Distribution.