a lj @ s d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dlm Z d dlmZmZ eeZG dd dZdS ) N)List)canonicalize_name)PyPI)has_tls)normalize_pathredact_auth_from_urlc @ sr e Zd ZdZddgZeee ee d dddZee ee dddd Z ed ddZ eee d ddZdS )SearchScopezF Encapsulates the locations that pip is configured to search. find_links index_urls)r r returnc C s g }|D ]0}| dr.t|}tj|r.|}|| qt svt||D ](}t j |}|jdkrLt d qvqL| ||dS )zQ 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 r ) startswithr ospathexistsappendr itertoolschainurllibparseurlparseschemeloggerwarning)clsr r Zbuilt_find_linkslinkZnew_linkparsed r E/usr/lib/python3.9/site-packages/pip/_internal/models/search_scope.pycreate s&