관리-도구
편집 파일: search_scope.cpython-310.pyc
o ƚ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 @ s| e Zd ZdZddgZedee dee dd fdd��Zdee dee ddfdd �Z defd d�Z dedee fd d�ZdS )�SearchScopezF Encapsulates the locations that pip is configured to search. � find_links� index_urls�returnc C s� g }|D ]}|� d�rt|�}tj�|�r|}|�|� qt� s;t�||�D ]}t j �|�}|jdkr:t �d� nq&| ||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-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/models/search_scope.py�create s( ���zSearchScope.createNc C s || _ || _d S �Nr )�selfr r r! r! r"