base.py 557 B

123456789101112131415161718
  1. from typing import Callable, List
  2. from pip._internal.req.req_install import InstallRequirement
  3. from pip._internal.req.req_set import RequirementSet
  4. InstallRequirementProvider = Callable[[str, InstallRequirement], InstallRequirement]
  5. class BaseResolver:
  6. def resolve(
  7. self, root_reqs: List[InstallRequirement], check_supported_wheels: bool
  8. ) -> RequirementSet:
  9. raise NotImplementedError()
  10. def get_installation_order(
  11. self, req_set: RequirementSet
  12. ) -> List[InstallRequirement]:
  13. raise NotImplementedError()