2bi#SSKrSSKrSSKrSSKrSSKrSSKJr SSKJ r SSK J r SSK J r SSKJrJr \R""\5r"SS5rg) N)List)canonicalize_name)PyPI)has_tls)normalize_pathredact_auth_from_urlc \rSrSrSr/SQr\S\\S\\S\ SS4Sj5r S\\S\\S\ SS 4S jr S\4S jr S \S\\4S jr Srg ) SearchScopez> Encapsulates the locations that pip is configured to search.  find_links index_urlsno_indexr rrreturnc/nUH[nURS5(a1[U5n[RR U5(aUnUR U5 M] [ 5(dc[R"X$5HIn[RRU5nURS:XdM4[RS5 O U"UUUS9$)zA Create a SearchScope object after normalizing the `find_links`. ~httpszipip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.r ) startswithrospathexistsappendr itertoolschainurllibparseurlparseschemeloggerwarning)clsr rrbuilt_find_linkslinknew_linkparseds ړ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/models/search_scope.pycreateSearchScope.creates')Ds##)$/77>>(++#D  # #D ) yy! E..t4==G+NN% F'!  Nc(XlX lX0lgNr )selfr rrs r&__init__SearchScope.__init__Cs %$ r)c/n/nUR(aUR[R/:waURHvn[U5n[R R U5nUR(d'UR(d[RSU5 URU5 Mx URSRSRU555 UR(a@URSRSRSUR5555 SRU5$)Nz:The index url "%s" seems invalid, please provide a scheme.zLooking in indexes: {}z, zLooking in links: {}c38# UHn[U5v M g7fr+)r).0urls r& 6SearchScope.get_formatted_locations..ksS?C2377?s )rr simple_urlrrrurlsplitrnetlocrr rformatjoinr )r,linesredacted_index_urlsr2redacted_index_urlpurls r&get_formatted_locations#SearchScope.get_formatted_locationsMs  ??t4??2CC%9#%>"||,,-?@{{4;;NNT* $**+=>#'& LL(// :M0NO  ?? LL&--IIS4??SS  yyr) project_namecz^S[S[4U4SjjnURVs/sH o2"U5PM sn$s snf)zReturns 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 r2rc>[R"U[RR [ T555nUR S5(dUS-nU$)N/) posixpathr:rrquoterendswith)r2locrAs r&mkurl_pypi_url.mkurl_pypi_urlwsJ..V\\''(9,(GHC<<$$CiJr))strr)r,rArIr2s ` r&get_index_urls_locations$SearchScope.get_index_urls_locationsps9   04?s#???s8)__name__ __module__ __qualname____firstlineno____doc__ __slots__ classmethodrrKboolr'r-r?rL__static_attributes__r)r&r r s9I' I' I'  '  ' ' R!I!I! !  !! ! F@S@T#Y@r)r )rloggingrrE urllib.parsertypingrpip._vendor.packaging.utilsrpip._internal.models.indexrpip._internal.utils.compatrpip._internal.utils.miscrr getLoggerrNrr rWr)r&r`sA 9+.I   8 $s@s@r)