h4J d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dlm Z d dlmZmZ ej e Z G d d ZdS ) N)List)canonicalize_name)PyPI)has_tls)normalize_pathredact_auth_from_urlc e Zd ZdZddgZedee dee dd fd Zdee dee ddfdZ defdZ d edee fd ZdS )SearchScopezF Encapsulates the locations that pip is configured to search. find_links index_urlsreturnc g }|D ]\}| d r0t | }t j | r|}| | ]t s^t j || D ]H}t j | }|j dk rt d nI | || S )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_linkparseds /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/models/search_scope.pycreatezSearchScope.create s ') * *Ds## $)$//7>>(++ $#D##D)))) yy ! 4DEE ..t44=G++NN% E , s'! Nc " || _ || _ d S Nr )selfr r s r$ __init__zSearchScope.__init__A s %$r&