◆ _iter_distributions()
| Iterator[BaseDistribution] pip._internal.metadata.pkg_resources.Environment._iter_distributions |
( |
|
self | ) |
|
|
protected |
Iterate through installed distributions.
This function should be implemented by subclass, but never called
directly. Use the public ``iter_distribution()`` instead, which
implements additional logic to make sure the distributions are valid.
Reimplemented from pip._internal.metadata.base.BaseEnvironment.
◆ _search_distribution()
| Optional[BaseDistribution] pip._internal.metadata.pkg_resources.Environment._search_distribution |
( |
|
self, |
|
|
str |
name |
|
) |
| |
|
protected |
Find a distribution matching the ``name`` in the environment.
This searches from *all* distributions available in the environment, to
match the behavior of ``pkg_resources.get_distribution()``.
◆ default()
| BaseEnvironment pip._internal.metadata.pkg_resources.Environment.default |
( |
|
cls | ) |
|
◆ from_paths()
| BaseEnvironment pip._internal.metadata.pkg_resources.Environment.from_paths |
( |
|
cls, |
|
|
Optional[List[str]] |
paths |
|
) |
| |
◆ get_distribution()
| Optional[BaseDistribution] pip._internal.metadata.pkg_resources.Environment.get_distribution |
( |
|
self, |
|
|
str |
name |
|
) |
| |
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_internal/metadata/pkg_resources.py