base.py 583 B

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