Edit File: search_scope.cpython-311.pyc
� Q�d# � � � 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_path�redact_auth_from_urlc � � e Zd ZdZg d�Zedee dee dedd fd�� � Z dee dee deddfd �Z defd �Zdedee fd�ZdS ) �SearchScopezF Encapsulates the locations that pip is configured to search. �� find_links� index_urls�no_indexr r r �returnc � � g }|D ]\}|� d� � r0t |� � }t j � |� � r|}|� |� � �]t � � s^t j ||� � D ]H}t j � |� � }|j dk rt � d� � n�I | |||�� � 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 )� startswithr �os�path�exists�appendr � itertools�chain�urllib�parse�urlparse�scheme�logger�warning)�clsr r r �built_find_links�link�new_link�parseds �r/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/pip/_internal/models/search_scope.py�createzSearchScope.create s � � ')��� *� *�D����s�#�#� $�)�$�/�/���7�>�>�(�+�+� $�#�D��#�#�D�)�)�)�)� �y�y� �!�� �4D�E�E� � ����.�.�t�4�4���=�G�+�+��N�N�%�� � � �E� ,� �s�'�!�� � � � � Nc �0 � || _ || _ || _ d S �Nr )�selfr r r s r% �__init__zSearchScope.__init__C s � � %���$��� �� � � r'