관리-도구
편집 파일: search_scope.cpython-38.opt-1.pyc
U ��.e� � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dl m Z d dlmZ d dl mZmZ d dlmZ er|d dlmZ e�e�ZG d d � d e�ZdS )� N)�canonicalize_name)�parse)�PyPI)�HAS_TLS)�normalize_path�redact_auth_from_url)�MYPY_CHECK_RUNNING)�Listc @ s4 e Zd ZdZedd� �Zdd� Zdd� Zdd � Zd S )�SearchScopezF Encapsulates the locations that pip is configured to search. c C s~ g }|D ]0}|� d�r.t|�}tj�|�r.|}|�|� qtsrt�||�D ]&}t � |�}|jdkrJt� d� qrqJ| ||d�S )zQ Create a SearchScope object after normalizing the `find_links`. �~Zhttpszipip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.�� find_links� index_urls)� startswithr �os�path�exists�appendr � itertools�chain�urllib_parseZurlparseZscheme�loggerZwarning)�clsr r Zbuilt_find_links�linkZnew_linkZparsed� r �E/usr/lib/python3.8/site-packages/pip/_internal/models/search_scope.py�create s&