????

Your IP : 216.73.216.152


Current Path : /usr/lib/python2.7/site-packages/pip/_internal/models/
Upload File :
Current File : //usr/lib/python2.7/site-packages/pip/_internal/models/search_scope.pyc

�
}�\]c@s�ddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZmZddlmZer�ddlmZneje�Zd	efd
��YZdS(i����N(tcanonicalize_name(tparse(tPyPI(tHAS_TLS(tnormalize_pathtredact_password_from_url(tMYPY_CHECK_RUNNING(tListtSearchScopecBs8eZdZed��Zd�Zd�Zd�ZRS(sF
    Encapsulates the locations that pip is configured to search.
    cCs�g}xT|D]L}|jd�rLt|�}tjj|�rL|}qLn|j|�q
Wts�xLtj||�D]5}t	j
|�}|jdkrvtj
d�PqvqvWn|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.t
find_linkst
index_urls(t
startswithRtostpathtexiststappendRt	itertoolstchainturllib_parseturlparsetschemetloggertwarning(tclsRRtbuilt_find_linkstlinktnew_linktparsed((s@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pytcreates"
cCs||_||_dS(N(RR(tselfRR((s@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pyt__init__Ds	cCs�g}|jrS|jtjgkrS|jdjdjd�|jD����n|jr�|jdjdjd�|jD����ndj|�S(NsLooking in indexes: {}s, css|]}t|�VqdS(N(R(t.0turl((s@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pys	<genexpr>SssLooking in links: {}css|]}t|�VqdS(N(R(R!R"((s@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pys	<genexpr>Xss
(RRt
simple_urlRtformattjoinR(Rtlines((s@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pytget_formatted_locationsMs	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@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pytmkurl_pypi_urlds
(R(RR-R.R"((R-s@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pytget_index_urls_locations\s
(t__name__t
__module__t__doc__tclassmethodRR R'R/(((s@/tmp/pip-install-ewDPok/pip/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	getLoggerR0RtobjectR(((s@/tmp/pip-install-ewDPok/pip/pip/_internal/models/search_scope.pyt<module>s