Your IP : 3.14.254.103


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyc

�
�Rec@@sdZddlmZddlZddlZddlmZddlmZddl	m
Zddlm
Z
mZmZmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddlm Z ddl!m"Z"ddl#m$Z$ddl%m&Z&ddl'm(Z(ddl)m*Z*ddl+m,Z,ddl-m.Z.e*rQddl/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7ddl8m9Z9ddl	m:Z:ddlm;Z;ddl<m=Z=ddl>m?Z?ddl@mAZAe7e6fe6eBeCffZDe6eBeBeBe:eDe3eBfZEnddd gZFejGeH�ZIeJd!�ZKd"eLfd#��YZMd$�ZNd%eLfd&��YZOdeLfd'��YZPd(eLfd)��YZQd eLfd*��YZRd+�ZSd,�ZTdS(-s!Routines related to PyPI, indexesi(tabsolute_importN(t
specifiers(tcanonicalize_name(tparse(tBestVersionAlreadyInstalledtDistributionNotFoundtInvalidWheelFilenametUnsupportedWheel(tparse_links(tInstallationCandidate(t
FormatControl(tLink(tSelectionPreferences(tTargetPython(tWheel(t	lru_cache(tWHEEL_EXTENSION(t
indent_log(tbuild_netloc(tcheck_requires_python(tMYPY_CHECK_RUNNING(tSUPPORTED_EXTENSIONS(turl_to_path(t	FrozenSettIterabletListtOptionaltSettTexttTupletUnion(tTag(t_BaseVersion(t
LinkCollector(tSearchScope(tInstallRequirement(tHashesR
tBestCandidateResultt
PackageFindercC@s�yt|jd|�}Wn*tjk
rEtjd|j|�n^X|s�djtt|��}|s�tjd||j|�t	Stjd||j|�nt
S(sa
    Return whether the given Python version is compatible with a link's
    "Requires-Python" value.

    :param version_info: A 3-tuple of ints representing the Python
        major-minor-micro version to check.
    :param ignore_requires_python: Whether to ignore the "Requires-Python"
        value if the given Python version isn't compatible.
    tversion_infos2Ignoring invalid Requires-Python (%r) for link: %st.s4Link requires a different Python (%s not in: %r): %ssBIgnoring failed Requires-Python check (%s not in: %r) for link: %s(Rtrequires_pythonRtInvalidSpecifiertloggertdebugtjointmaptstrtFalsetTrue(tlinkR'tignore_requires_pythont
is_compatibletversion((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt_check_link_requires_python>s$t
LinkEvaluatorcB@s2eZdZejd�Zdd�Zd�ZRS(sD
    Responsible for evaluating links for a particular project.
    s-py([123]\.?[0-9]?)$cC@sO|dkrt}n||_||_||_||_||_||_dS(s�
        :param project_name: The user supplied package name.
        :param canonical_name: The canonical package name.
        :param formats: The formats allowed for this package. Should be a set
            with 'binary' or 'source' or both in it.
        :param target_python: The target Python interpreter to use when
            evaluating link compatibility. This is used, for example, to
            check wheel compatibility, as well as when checking the Python
            version, e.g. the Python version embedded in a link filename
            (or egg fragment) and against an HTML link's optional PEP 503
            "data-requires-python" attribute.
        :param allow_yanked: Whether files marked as yanked (in the sense
            of PEP 592) are permitted to be candidates for install.
        :param ignore_requires_python: Whether to ignore incompatible
            PEP 503 "data-requires-python" values in HTML links. Defaults
            to False.
        N(tNoneR0t
_allow_yankedt_canonical_namet_ignore_requires_pythont_formatst_target_pythontproject_name(tselfR>tcanonical_nametformatst
target_pythontallow_yankedR3((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt__init__us						cC@s�d}|jr;|jr;|jp%d}tdj|�fS|jrY|j}|j}nc|j�\}}|s{tdfS|t	kr�tdj|�fSd|j
kr�|tkr�dj|j�}t|fSd|j
kr�|dkr�td	fS|tkr�yt|j�}Wntk
r/td
fSXt|j�|jkrddj|j�}t|fS|jj�}|j|�s�|j�}djd
j|��}t|fS|j}nd|j
kr�|tkr�dj|j�}t|fS|st||j�}n|s0dj|j�}t|fS|jj|�}	|	r�||	j� }|	jd�}
|
|jjkr�tdfSnt |d|jj!d|j"�}|s�tdfSt#j$d||�t%|fS(sG
        Determine whether a link is a candidate for installation.

        :return: A tuple (is_candidate, result), where `result` is (1) a
            version string if `is_candidate` is True, and (2) if
            `is_candidate` is False, an optional string to log the reason
            the link fails to qualify.
        s<none given>uyanked for reason: {}s
not a filesunsupported archive format: {}tbinarysNo binaries permitted for {}tmacosx10s.zipsmacosx10 onesinvalid wheel filenameswrong project name (not {})s"none of the wheel's tags match: {}s, tsourcesNo sources permitted for {}sMissing project version for {}isPython version is incorrectR'R3sFound link %s, version: %sN(&R8t	is_yankedR9t
yanked_reasonR0tformattegg_fragmenttexttsplitextRR<RR>tpathRtfilenameRRtnameR:R=tget_tagst	supportedtget_formatted_file_tagsR-R5t_extract_version_from_fragmentt_py_version_retsearchtstarttgroupt
py_versionR6tpy_version_infoR;R+R,R1(R?R2R5treasontegg_infoRLtwheeltsupported_tagst	file_tagstmatchRYtsupports_python((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt
evaluate_link�sp
		









N(	t__name__t
__module__t__doc__tretcompileRUR8RDRb(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR7is
c
C@s:|s)tjdt|�|�t|�Sg}g}d}x_|D]W}|j}|js]n/|jd|�r||d7}n|j|�qB|j|�qBW|r�|}nt|�}t|�t|�kr�d}	n+djt|�dj	d�|D���}	tjd	t|�||j
|t|�||	�|S(
s�
    Filter out candidates whose hashes aren't allowed, and return a new
    list of candidates.

    If at least one candidate has an allowed hash, then all candidates with
    either an allowed hash or no hash specified are returned.  Otherwise,
    the given candidates are returned.

    Including the candidates with no hash specified when there is a match
    allows a warning to be logged if there is a more preferred candidate
    with no hash specified.  Returning all candidates in the case of no
    matches lets pip report the hash of the candidate that would otherwise
    have been installed (e.g. permitting the user to more easily update
    their requirements file with the desired hash).
    sJGiven no hashes to check %s links for project %r: discarding no candidatesithashesisdiscarding no candidatessdiscarding {} non-matches:
  {}s
  cs@s|]}t|j�VqdS(N(R/R2(t.0t	candidate((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pys	<genexpr>0ssPChecked %s links for project %r against %s hashes (%s matches, %s no digest): %s(R+R,tlentlistR2thas_hashtis_hash_allowedtappendRJR-tdigest_count(
t
candidatesRhR>tmatches_or_no_digesttnon_matchestmatch_countRjR2tfilteredtdiscard_message((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytfilter_unallowed_hashes�sF	

		

				
tCandidatePreferencescB@seZdZeed�ZRS(sk
    Encapsulates some of the preferences for filtering and sorting
    InstallationCandidate objects.
    cC@s||_||_dS(sR
        :param allow_all_prereleases: Whether to allow all pre-releases.
        N(tallow_all_prereleasest
prefer_binary(R?RzRy((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRDHs		(RcRdReR0RD(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRxAscB@s)eZdZd�Zd�Zd�ZRS(s�A collection of candidates, returned by `PackageFinder.find_best_candidate`.

    This class is only intended to be instantiated by CandidateEvaluator's
    `compute_best_candidate()` method.
    cC@skt|�t|�kst�|dkr:|sLt�n||ksLt�||_||_||_dS(s
        :param candidates: A sequence of all available candidates found.
        :param applicable_candidates: The applicable candidates.
        :param best_candidate: The most preferred candidate found, or None
            if no applicable candidates were found.
        N(tsettAssertionErrorR8t_applicable_candidatest_candidatestbest_candidate(R?Rqtapplicable_candidatesR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRD\s
		cC@s
t|j�S(s(Iterate through all candidates.
        (titerR~(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytiter_alluscC@s
t|j�S(s3Iterate through the applicable candidates.
        (R�R}(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytiter_applicable{s(RcRdReRDR�R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR%Us		tCandidateEvaluatorcB@sbeZdZedeeddd��Zeedd�Zd�Zd�Z	d�Z
d�ZRS(sm
    Responsible for filtering and sorting candidates for installation based
    on what tags are valid.
    c
C@sj|dkrt�}n|dkr3tj�}n|j�}|d|d|d|d|d|d|�S(s�Create a CandidateEvaluator object.

        :param target_python: The target Python interpreter to use when
            checking compatibility. If None (the default), a TargetPython
            object will be constructed from the running Python.
        :param specifier: An optional object implementing `filter`
            (e.g. `packaging.specifiers.SpecifierSet`) to filter applicable
            versions.
        :param hashes: An optional collection of allowed hashes.
        R>R^t	specifierRzRyRhN(R8R
RtSpecifierSetRQ(tclsR>RBRzRyR�RhR^((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytcreate�scC@s:||_||_||_||_||_||_dS(s�
        :param supported_tags: The PEP 425 tags supported by the target
            Python in order of preference (most preferred first).
        N(t_allow_all_prereleasest_hashest_prefer_binaryt
_project_namet
_specifiert_supported_tags(R?R>R^R�RzRyRh((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRD�s					cC@s�|jpd}|j}d�|jd�|D�d|�D�}g|D]!}t|j�|krH|^qH}td|d|jd|j�}t	|d|j
�S(	sM
        Return the applicable candidates from a list of candidates.
        cS@sh|]}t|��qS((R/(Ritv((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pys	<setcomp>�s	cs@s|]}t|j�VqdS(N(R/R5(Ritc((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pys	<genexpr>�stprereleasesRqRhR>tkeyN(R�R8R�tfilterR/R5RwR�R�tsortedt	_sort_key(R?Rqtallow_prereleasesR�tversionsR�R�tfiltered_applicable_candidates((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytget_applicable_candidates�s		
.	c
C@s)|j}t|�}d}d}|j}|jr�t|j�}|j|�sltdj|j���n|j	r~d}n|j
|�}|jdk	r�t
jd|j�}	|	j�}
t|
d�|
df}q�n|}t|j|j��}dt|j�}||||j||fS(s)
        Function to pass as the `key` argument to a call to sorted() to sort
        InstallationCandidates by preference.

        Returns a tuple such that tuples sorting as greater using Python's
        default comparison operator are more preferred.

        The preference is as follows:

        First and foremost, candidates with allowed (matching) hashes are
        always preferred over candidates without matching hashes. This is
        because e.g. if the only candidate with an allowed hash is yanked,
        we still want to use that candidate.

        Second, excepting hash considerations, candidates that have been
        yanked (in the sense of PEP 592) are always less preferred than
        candidates that haven't been yanked. Then:

        If not finding wheels, they are sorted by version only.
        If finding wheels, then the sort order is by version, then:
          1. existing installs
          2. wheels ordered via Wheel.support_index_min(self._supported_tags)
          3. source archives
        If prefer_binary was set, then all wheels are sorted above sources.

        Note: it was considered to embed this logic into the Link
              comparison operators, but then different sdist links
              with the same version, would have to be considered equal
        isB{} is not a supported wheel for this platform. It can't be sorted.is^(\d+)(.*)$i����(N(R�RkR2tis_wheelRRORRRRJR�tsupport_index_mint	build_tagR8RfR`tgroupstintRnR�RHR5(
R?Rjt
valid_tagstsupport_numR�tbinary_preferenceR2R]tpriR`tbuild_tag_groupsthas_allowed_hasht
yank_value((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR��s.					 cC@s#|s
dSt|d|j�}|S(sy
        Return the best candidate per the instance's sort order, or None if
        no candidate is acceptable.
        R�N(R8tmaxR�(R?RqR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytsort_best_candidate%s	cC@s4|j|�}|j|�}t|d|d|�S(sF
        Compute and return a `BestCandidateResult` instance.
        R�R(R�R�R%(R?RqR�R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytcompute_best_candidate3sN(RcRdRetclassmethodR8R0R�RDR�R�R�R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR��s"	&	<	cB@s4eZdZdddd�Zedd��Zed��Zed��Z	e	j
d��Z	ed��Zed��Zed��Z
ed	��Zd
�Zed��Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zedd�d��Zddd�Zddd�Zd�ZRS(s�This finds packages.

    This is meant to match easy_install's technique for looking for
    packages, by reading pages and looking for appropriate links.
    cC@sy|dkrt�}n|p0tt�t��}||_||_||_||_||_||_	t�|_
dS(s�
        This constructor is primarily meant to be used by the create() class
        method and from tests.

        :param format_control: A FormatControl object, used to control
            the selection of source packages / binary packages when consulting
            the index and links.
        :param candidate_prefs: Options to use when creating a
            CandidateEvaluator object.
        N(R8RxR
R{R9t_candidate_prefsR;t_link_collectorR=tformat_controlt
_logged_links(R?tlink_collectorRBRCR�tcandidate_prefsR3((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRDMs						c
C@sg|d	krt�}ntd|jd|j�}|d|d|d|d|jd|jd|j�S(
sfCreate a PackageFinder.

        :param selection_prefs: The candidate selection preferences, as a
            SelectionPreferences object.
        :param target_python: The target Python interpreter to use when
            checking compatibility. If None (the default), a TargetPython
            object will be constructed from the running Python.
        RzRyR�R�RBRCR�R3N(R8R
RxRzRyRCR�R3(R�R�tselection_prefsRBR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR�us			cC@s|jS(N(R=(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRB�scC@s
|jjS(N(R�tsearch_scope(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR��scC@s||j_dS(N(R�R�(R?R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR��scC@s
|jjS(N(R�t
find_links(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR��scC@s
|jjS(N(R�t
index_urls(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR��scc@s)x"|jjjD]}t|�VqWdS(N(R�tsessiontpip_trusted_originsR(R?t	host_port((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt
trusted_hosts�scC@s
|jjS(N(R�Ry(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRy�scC@st|j_dS(N(R1R�Ry(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytset_allow_all_prereleases�scC@s
|jjS(N(R�Rz(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRz�scC@st|j_dS(N(R1R�Rz(R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytset_prefer_binary�sc
C@sRt|�}|jj|�}td|d|d|d|jd|jd|j�S(NR>R@RARBRCR3(RR�tget_allowed_formatsR7R=R9R;(R?R>R@RA((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytmake_link_evaluator�s		cC@sqgg}}t�}xP|D]H}||kr|j|�|jrU|j|�qe|j|�qqW||S(s�
        Returns elements of links in order, non-egg links first, egg links
        second, while eliminating duplicates
        (R{taddRKRo(R?tlinksteggstno_eggstseenR2((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt_sort_links�s
	

	cC@s9||jkr5tjd||�|jj|�ndS(NuSkipping link: %s: %s(R�R+R,R�(R?R2R[((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt_log_skipped_link�scC@s]|j|�\}}|s;|r7|j|d|�ndStd|jd|dt|��S(s�
        If the link is a candidate for install, convert it to an
        InstallationCandidate and return it. Otherwise, return None.
        R[RPR2R5N(RbR�R8R	R>R/(R?tlink_evaluatorR2tis_candidatetresult((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytget_install_candidate�s	cC@sRg}xE|j|�D]4}|j||�}|dk	r|j|�qqW|S(sU
        Convert links that are candidates to InstallationCandidate objects.
        N(R�R�R8Ro(R?R�R�RqR2Rj((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytevaluate_linksscC@smtjd|�|jj|�}|dkr2gStt|��}t��|j|d|�}WdQX|S(Ns-Fetching project page and analyzing links: %sR�(	R+R,R�t
fetch_pageR8RlRRR�(R?tproject_urlR�t	html_paget
page_linkst
package_links((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytprocess_project_urls

tmaxsizec
C@s�|jj|�}|j|�}|j|d|j�}g}x3|jD](}|j|d|�}|j|�qIW|j|d|j�}|r�|j	dt
�tjddj
g|D]}	t|	jj�^q���n|||S(sFind all available InstallationCandidate for project_name

        This checks index_urls and find_links.
        All versions found are returned as an InstallationCandidate list.

        See LinkEvaluator.evaluate_link() for details on which files
        are accepted.
        R�R�treversesLocal files found: %ss, (R�t
collect_linksR�R�R�tproject_urlsR�textendtfilestsortR1R+R,R-RR2turl(
R?R>tcollected_linksR�tfind_links_versionst
page_versionsR�R�t
file_versionsRj((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytfind_all_candidates%s*)c
C@s@|j}tjd|d|jd|jd|jd|d|�S(s3Create a CandidateEvaluator object to use.
        R>RBRzRyR�Rh(R�R�R�R=RzRy(R?R>R�RhR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytmake_candidate_evaluatorQs						cC@s:|j|�}|jd|d|d|�}|j|�S(sFind matches for the given project and specifier.

        :param specifier: An optional object implementing `filter`
            (e.g. `packaging.specifiers.SpecifierSet`) to filter applicable
            versions.

        :return: A `BestCandidateResult` instance.
        R>R�Rh(R�R�R�(R?R>R�RhRqtcandidate_evaluator((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytfind_best_candidateds		c	C@s�|jdt�}|j|jd|jd|�}|j}d}|jdk	rft|jj	�}nd�}|dkr�|dkr�t
jd|||j���t
dj|���nt}|r�|dks�|j	|kr�t}n|r4|dk	r4|rt
jd|�nt
jd||j	�dS|rbt
jd	|||j���t�nt
jd
|j	||j���|S(s�Try to find a Link matching req

        Expects req, an InstallRequirement and upgrade, a boolean
        Returns a InstallationCandidate if found,
        Raises DistributionNotFound or BestVersionAlreadyInstalled otherwise
        ttrust_internetR�RhcS@s)djtd�|D�dt��p(dS(Ns, cS@sh|]}t|j��qS((R/R5(RiR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pys	<setcomp>�s	R�tnone(R-R�t
parse_version(t	cand_iter((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt_format_versions�s	sNCould not find a version that satisfies the requirement %s (from versions: %s)s%No matching distribution found for {}sLExisting installed version (%s) is most up-to-date and satisfies requirementsUExisting installed version (%s) satisfies requirement (most up-to-date version is %s)s=Installed version (%s) is most up-to-date (past versions: %s)s)Using version %s (newest of versions: %s)N(RhR0R�RPR�RR8tsatisfied_byR�R5R+tcriticalR�RRJR1R,R�R(	R?treqtupgradeRhtbest_candidate_resultRtinstalled_versionR�tbest_installed((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pytfind_requirement{sT			

	N(RcRdReR8RDR�R�tpropertyRBR�tsetterR�R�R�RyR�RzR�R�R�R�R�R�R�RR�R�R�R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyR&Fs8!							
	/cC@sexFt|�D]8\}}|dkr+q
nt|| �|kr
|Sq
Wtdj||���dS(s�Find the separator's index based on the package's canonical name.

    :param fragment: A <package>+<version> filename "fragment" (stem) or
        egg fragment.
    :param canonical_name: The package's canonical name.

    This function is needed since the canonicalized name does not necessarily
    have the same length as the egg info's name part. An example::

    >>> fragment = 'foo__bar-1.0'
    >>> canonical_name = 'foo-bar'
    >>> _find_name_version_sep(fragment, canonical_name)
    8
    t-s{} does not match {}N(t	enumerateRt
ValueErrorRJ(tfragmentR@tiR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt_find_name_version_sep�scC@sDyt||�d}Wntk
r+dSX||}|s@dS|S(s�Parse the version string from a <package>+<version> filename
    "fragment" (stem) or egg fragment.

    :param fragment: The string to parse. E.g. foo-2.1
    :param canonical_name: The canonicalized name of the package this
        belongs to.
    iN(R�R�R8(R�R@t
version_startR5((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyRT�s	

(URet
__future__RtloggingRftpip._vendor.packagingRtpip._vendor.packaging.utilsRtpip._vendor.packaging.versionRR�tpip._internal.exceptionsRRRRtpip._internal.index.collectorRtpip._internal.models.candidateR	t#pip._internal.models.format_controlR
tpip._internal.models.linkRt$pip._internal.models.selection_prefsRt"pip._internal.models.target_pythonR
tpip._internal.models.wheelRtpip._internal.utils.compatRtpip._internal.utils.filetypesRtpip._internal.utils.loggingRtpip._internal.utils.miscRtpip._internal.utils.packagingRtpip._internal.utils.typingRtpip._internal.utils.unpackingRtpip._internal.utils.urlsRttypingRRRRRRRRtpip._vendor.packaging.tagsRR R!t!pip._internal.models.search_scopeR"tpip._internal.reqR#tpip._internal.utils.hashesR$R�R/tBuildTagtCandidateSortingKeyt__all__t	getLoggerRcR+R0R6tobjectR7RwRxR%R�R&R�RT(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/index/package_finder.pyt<module>sX":#(�	K-���	

?>