PHP 8.2.30
Preview: installed.py Size: 542 B
/proc/thread-self/root/proc/self/root/lib/python3.8/site-packages/pip/_internal/distributions/installed.py

# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False

from pip._internal.distributions.base import AbstractDistribution


class InstalledDistribution(AbstractDistribution):
    """Represents an installed package.

    This does not need any preparation as the required information has already
    been computed.
    """

    def get_pkg_resources_distribution(self):
        return self.req.satisfied_by

    def prepare_distribution_metadata(self, finder, build_isolation):
        pass

Directory Contents

Dirs: 2 × Files: 4

Name Size Perms Modified Actions
source DIR
- drwxr-xr-x 2024-03-21 10:19:28
Edit Download
- drwxr-xr-x 2024-03-21 10:19:28
Edit Download
1.08 KB lrw-r--r-- 2023-10-17 18:30:24
Edit Download
542 B lrw-r--r-- 2023-10-17 18:30:24
Edit Download
616 B lrw-r--r-- 2023-10-17 18:30:24
Edit Download
967 B lrw-r--r-- 2023-10-17 18:30:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).