Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
keewenaw
GitHub Repository: keewenaw/ethereum-wallet-cracker
Path: blob/main/test/lib/python3.9/site-packages/pip/_internal/distributions/installed.py
4804 views
1
from pip._internal.distributions.base import AbstractDistribution
2
from pip._internal.index.package_finder import PackageFinder
3
from pip._internal.metadata import BaseDistribution
4
5
6
class InstalledDistribution(AbstractDistribution):
7
"""Represents an installed package.
8
9
This does not need any preparation as the required information has already
10
been computed.
11
"""
12
13
def get_metadata_distribution(self) -> BaseDistribution:
14
assert self.req.satisfied_by is not None, "not actually installed"
15
return self.req.satisfied_by
16
17
def prepare_distribution_metadata(
18
self,
19
finder: PackageFinder,
20
build_isolation: bool,
21
check_build_deps: bool,
22
) -> None:
23
pass
24
25