ok
Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/ |
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/providers.pyo |
� Bu�_c @ s0 d e f d � � YZ d e f d � � YZ d S( t AbstractProviderc B s; e Z d Z d � Z d � Z d � Z d � Z d � Z RS( sF Delegate class to provide requirement interface for the resolver. c C s t � d S( sI Given a dependency, return an identifier for it. This is used in many places to identify the dependency, e.g. whether two requirements should have their specifier parts merged, whether two specifications would conflict with each other (because they the same name but different versions). N( t NotImplementedError( t selft dependency( ( sQ /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/providers.pyt identify s c C s t � d S( sT Produce a sort key for given specification based on preference. The preference is defined as "I think this requirement should be resolved first". The lower the return value is, the more preferred this group of arguments is. :param resolution: Currently pinned candidate, or `None`. :param candidates: A list of possible candidates. :param information: A list of requirement information. Each information instance is a named tuple with two entries: * `requirement` specifies a requirement contributing to the current candidate list * `parent` specifies the candidate that provides (dependend on) the requirement, or `None` to indicate a root requirement. The preference could depend on a various of issues, including (not necessarily in this order): * Is this package pinned in the current resolution result? * How relaxed is the requirement? Stricter ones should probably be worked on first? (I don't know, actually.) * How many possibilities are there to satisfy this requirement? Those with few left should likely be worked on first, I guess? * Are there any known conflicts for this requirement? We should probably work on those with the most known conflicts. A sortable value should be returned (this will be used as the `key` parameter of the built-in sorting function). The smaller the value is, the more preferred this specification is (i.e. the sorting function is called with `reverse=False`). N( R ( R t resolutiont candidatest information( ( sQ /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/providers.pyt get_preference s "c C s t � d S( s� Find all possible candidates that satisfy the given requirements. This should try to get candidates based on the requirements' types. For VCS, local, and archive requirements, the one-and-only match is returned, and for a "named" requirement, the index(es) should be consulted to find concrete candidates for this requirement. :param requirements: A collection of requirements which all of the the returned candidates must match. All requirements are guaranteed to have the same identifier. The collection is never empty. :returns: An iterable that orders candidates by preference, e.g. the most preferred candidate should come first. N( R ( R t requirements( ( sQ /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/providers.pyt find_matches3 s c C s t � d S( s Whether the given requirement can be satisfied by a candidate. The candidate is guarenteed to have been generated from the requirement. A boolean should be returned to indicate whether `candidate` is a viable solution to the requirement. N( R ( R t requirementt candidate( ( sQ /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/providers.pyt is_satisfied_byC s c C s t � d S( s� Get dependencies of a candidate. This should return a collection of requirements that `candidate` specifies as its dependencies. N( R ( R R ( ( sQ /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/providers.pyt get_dependenciesN s ( t __name__t __module__t __doc__R R R R R ( ( ( sQ /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/providers.pyR s $ t AbstractResolverc B s&