base.py 682 B

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