a Re @ 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 built_find_linkslinknew_linkparsed r! /builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/models/search_scope.pycreate s&