OpenQuizz
Une application de gestion des contenus pédagogiques
Resolver Class Reference
Inheritance diagram for Resolver:
Collaboration diagram for Resolver:

Public Member Functions

def __init__ (self, preparer, finder, wheel_cache, make_install_req, use_user_site, ignore_dependencies, ignore_installed, ignore_requires_python, force_reinstall, upgrade_strategy, py_version_info=None)
 
def resolve (self, root_reqs, check_supported_wheels)
 
def get_installation_order (self, req_set)
 

Data Fields

 preparer
 
 finder
 
 wheel_cache
 
 upgrade_strategy
 
 force_reinstall
 
 ignore_dependencies
 
 ignore_installed
 
 ignore_requires_python
 
 use_user_site
 

Detailed Description

Resolves which packages need to be installed/uninstalled to perform \
the requested operation without breaking the requirements of any package.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  preparer,
  finder,
  wheel_cache,
  make_install_req,
  use_user_site,
  ignore_dependencies,
  ignore_installed,
  ignore_requires_python,
  force_reinstall,
  upgrade_strategy,
  py_version_info = None 
)

Member Function Documentation

◆ get_installation_order()

def get_installation_order (   self,
  req_set 
)
Create the installation order.

The installation order is topological - requirements are installed
before the requiring thing. We break cycles at an arbitrary point,
and make no other guarantees.

Reimplemented from BaseResolver.

◆ resolve()

def resolve (   self,
  root_reqs,
  check_supported_wheels 
)
Resolve what operations need to be done

As a side-effect of this method, the packages (and their dependencies)
are downloaded, unpacked and prepared for installation. This
preparation is done by ``pip.operations.prepare``.

Once PyPI has static dependency metadata available, it would be
possible to move the preparation to become a step separated from
dependency resolution.

Reimplemented from BaseResolver.

Field Documentation

◆ finder

finder

◆ force_reinstall

force_reinstall

◆ ignore_dependencies

ignore_dependencies

◆ ignore_installed

ignore_installed

◆ ignore_requires_python

ignore_requires_python

◆ preparer

preparer

◆ upgrade_strategy

upgrade_strategy

◆ use_user_site

use_user_site

◆ wheel_cache

wheel_cache

The documentation for this class was generated from the following file: