관리-도구
편집 파일: search_scope.cpython-311.pyc
� �Re� � � � 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 ZdZddgZedee dee dd fd�� � Zdee dee ddfd�Z defd�Z d edee fd �ZdS )�SearchScopezF Encapsulates the locations that pip is configured to search. � find_links� index_urls�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 r )� startswithr �os�path�exists�appendr � itertools�chain�urllib�parse�urlparse�scheme�logger�warning)�clsr r �built_find_links�link�new_link�parseds ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/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 �"