comparison env/lib/python3.9/site-packages/pip/_internal/distributions/installed.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 from pip._internal.distributions.base import AbstractDistribution
2 from pip._internal.utils.typing import MYPY_CHECK_RUNNING
3
4 if MYPY_CHECK_RUNNING:
5 from typing import Optional
6
7 from pip._vendor.pkg_resources import Distribution
8
9 from pip._internal.index.package_finder import PackageFinder
10
11
12 class InstalledDistribution(AbstractDistribution):
13 """Represents an installed package.
14
15 This does not need any preparation as the required information has already
16 been computed.
17 """
18
19 def get_pkg_resources_distribution(self):
20 # type: () -> Optional[Distribution]
21 return self.req.satisfied_by
22
23 def prepare_distribution_metadata(self, finder, build_isolation):
24 # type: (PackageFinder, bool) -> None
25 pass