ó ïRec@sØddlZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZmZddlmZer¯ddlmZnejeƒZd efd „ƒYZdS( iÿÿÿÿN(tcanonicalize_name(tparse(tPyPI(thas_tls(tnormalize_pathtredact_auth_from_url(tMYPY_CHECK_RUNNING(tListt SearchScopecBsDeZdZddgZed„ƒZd„Zd„Zd„ZRS(sF Encapsulates the locations that pip is configured to search. t find_linkst index_urlscCsÈg}xT|D]L}|jdƒrLt|ƒ}tjj|ƒrL|}qLn|j|ƒq WtƒsµxLtj||ƒD]5}t j |ƒ}|j dkryt j dƒPqyqyWn|d|d|ƒS(sQ Create a SearchScope object after normalizing the `find_links`. t~thttpssipip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.R R (t startswithRtostpathtexiststappendRt itertoolstchaint urllib_parseturlparsetschemetloggertwarning(tclsR R tbuilt_find_linkstlinktnew_linktparsed((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytcreates"     cCs||_||_dS(N(R R (tselfR 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/models/search_scope.pyt__init__Fs cCsôg}g}|jr¯|jtjgkr¯x`|jD]U}t|ƒ}tj|ƒ}|j r||j r|tj d|ƒn|j |ƒq4W|j dj dj |ƒƒƒn|j rç|j dj dj d„|j Dƒƒƒƒndj |ƒS(Ns:The index url "%s" seems invalid, please provide a scheme.sLooking in indexes: {}s, sLooking in links: {}css|]}t|ƒVqdS(N(R(t.0turl((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pys mss (R Rt simple_urlRRturlsplitRtnetlocRRRtformattjoinR (Rtlinestredacted_index_urlsR"tredacted_index_urltpurl((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytget_formatted_locationsOs$     cs/‡fd†}g|jD]}||ƒ^qS(s²Returns the locations found via self.index_urls Checks the url_name on the main (first in the list) index and use this url_name to produce all locations csAtj|tjtˆƒƒƒ}|jdƒs=|d}n|S(Nt/(t posixpathR'RtquoteRtendswith(R"tloc(t project_name(s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytmkurl_pypi_urlys  (R (RR2R3R"((R2s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pytget_index_urls_locationsqs( t__name__t __module__t__doc__t __slots__t classmethodRR R,R4(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pyRs  ) "(RtloggingRR.tpip._vendor.packaging.utilsRtpip._vendor.six.moves.urllibRRtpip._internal.models.indexRtpip._internal.utils.compatRtpip._internal.utils.miscRRtpip._internal.utils.typingRttypingRt getLoggerR5RtobjectR(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/search_scope.pyts