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.

wheel.py 616B

1234567891011121314151617181920
  1. # The following comment should be removed at some point in the future.
  2. # mypy: disallow-untyped-defs=False
  3. from pip._vendor import pkg_resources
  4. from pip._internal.distributions.base import AbstractDistribution
  5. class WheelDistribution(AbstractDistribution):
  6. """Represents a wheel distribution.
  7. This does not need any preparation as wheels can be directly unpacked.
  8. """
  9. def get_pkg_resources_distribution(self):
  10. return list(pkg_resources.find_distributions(
  11. self.req.source_dir))[0]
  12. def prepare_distribution_metadata(self, finder, build_isolation):
  13. pass