You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

installed.py 542B

123456789101112131415161718
  1. # The following comment should be removed at some point in the future.
  2. # mypy: disallow-untyped-defs=False
  3. from pip._internal.distributions.base import AbstractDistribution
  4. class InstalledDistribution(AbstractDistribution):
  5. """Represents an installed package.
  6. This does not need any preparation as the required information has already
  7. been computed.
  8. """
  9. def get_pkg_resources_distribution(self):
  10. return self.req.satisfied_by
  11. def prepare_distribution_metadata(self, finder, build_isolation):
  12. pass