OpenQuizz
Une application de gestion des contenus pédagogiques
Factory Class Reference

Public Member Functions

def __init__ (self, finder, preparer, make_install_req, wheel_cache, use_user_site, force_reinstall, ignore_installed, ignore_requires_python, py_version_info=None)
 
def force_reinstall (self)
 
Iterable[Candidatefind_candidates (self, str identifier, Mapping[str, Iterator[Requirement]] requirements, Mapping[str, Iterator[Candidate]] incompatibilities, Constraint constraint, bool prefers_installed)
 
def make_requirement_from_install_req (self, ireq, requested_extras)
 
def make_requirement_from_candidate (self, candidate)
 
def make_requirement_from_spec (self, specifier, comes_from, requested_extras=())
 
def make_requires_python_requirement (self, specifier)
 
def get_wheel_cache_entry (self, link, name)
 
def get_dist_to_uninstall (self, candidate)
 
def get_installation_error (self, e, constraints)
 

Data Fields

 preparer
 

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ find_candidates()

Iterable[Candidate] find_candidates (   self,
str  identifier,
Mapping[str, Iterator[Requirement]]  requirements,
Mapping[str, Iterator[Candidate]]  incompatibilities,
Constraint  constraint,
bool  prefers_installed 
)

◆ force_reinstall()

def force_reinstall (   self)

◆ get_dist_to_uninstall()

def get_dist_to_uninstall (   self,
  candidate 
)

◆ get_installation_error()

def get_installation_error (   self,
  e,
  constraints 
)

◆ get_wheel_cache_entry()

def get_wheel_cache_entry (   self,
  link,
  name 
)
Look up the link in the wheel cache.

If ``preparer.require_hashes`` is True, don't use the wheel cache,
because cached wheels, always built locally, have different hashes
than the files downloaded from the index server and thus throw false
hash mismatches. Furthermore, cached wheels at present have
nondeterministic contents due to file modification times.

◆ make_requirement_from_candidate()

def make_requirement_from_candidate (   self,
  candidate 
)

◆ make_requirement_from_install_req()

def make_requirement_from_install_req (   self,
  ireq,
  requested_extras 
)

◆ make_requirement_from_spec()

def make_requirement_from_spec (   self,
  specifier,
  comes_from,
  requested_extras = () 
)

◆ make_requires_python_requirement()

def make_requires_python_requirement (   self,
  specifier 
)

Field Documentation

◆ preparer

preparer

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