관리-도구
편집 파일: search_scope.cpython-38.pyc
U ʗRe� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dlm Z d dlmZmZ e�e�ZG dd� d�ZdS ) � N)�List)�canonicalize_name)�PyPI)�has_tls)�normalize_path�redact_auth_from_urlc @ sr e Zd ZdZddgZeee ee d d�dd��Zee ee dd�dd �Z ed �dd�Z eee d �dd�ZdS )�SearchScopezF Encapsulates the locations that pip is configured to search. � find_links� index_urls)r r �returnc C s� g }|D ]0}|� d�r.t|�}tj�|�r.|}|�|� qt� svt�||�D ](}t j �|�}|jdkrLt �d� qvqL| ||d�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�parsed� r! ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/models/search_scope.py�create s&