|
|
| __init__ (self, RequirementPreparer preparer, PackageFinder finder, Optional[WheelCache] wheel_cache, InstallRequirementProvider make_install_req, bool use_user_site, bool ignore_dependencies, bool ignore_installed, bool ignore_requires_python, bool force_reinstall, str upgrade_strategy, Optional[Tuple[int,...]] py_version_info=None) |
| |
| RequirementSet | resolve (self, List[InstallRequirement] root_reqs, bool check_supported_wheels) |
| |
| List[InstallRequirement] | get_installation_order (self, RequirementSet req_set) |
| |
|
|
| factory |
| |
|
| ignore_dependencies |
| |
|
| upgrade_strategy |
| |
|
|
dict | _allowed_strategies = {"eager", "only-if-needed", "to-satisfy-only"} |
| |
◆ get_installation_order()
Get order for installation of requirements in RequirementSet.
The returned list contains a requirement before another that depends on
it. This helps ensure that the environment is kept consistent as they
get installed one-by-one.
The current implementation creates a topological ordering of the
dependency graph, giving more weight to packages with less
or no dependencies, while breaking any cycles in the graph at
arbitrary points. We make no guarantees about where the cycle
would be broken, other than it *would* be broken.
Reimplemented from pip._internal.resolution.base.BaseResolver.
◆ resolve()
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py