U .e @ s d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dl m Z d dlmZ d dl mZmZ d dlmZ er|d dlmZ eeZG d d d eZdS ) N)canonicalize_name)parse)PyPI)HAS_TLS)normalize_pathredact_auth_from_url)MYPY_CHECK_RUNNING)Listc @ s4 e Zd ZdZedd Zdd Zdd Zdd Zd S )SearchScopezF Encapsulates the locations that pip is configured to search. c C s~ g }|D ]0}| dr.t|}tj|r.|}|| qtsrt||D ]&}t |}|jdkrJt d qrqJ| ||dS )zQ Create a SearchScope object after normalizing the `find_links`. ~Zhttpszipip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. find_links index_urls) startswithr ospathexistsappendr itertoolschainurllib_parseZurlparseZschemeloggerZwarning)clsr r Zbuilt_find_linkslinkZnew_linkZparsed r E/usr/lib/python3.8/site-packages/pip/_internal/models/search_scope.pycreate s&