관리-도구
편집 파일: req_set.cpython-38.pyc
U ��.e� � @ s� d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZ d d lmZ er�d d lmZmZmZmZmZ d dlmZ e�e�ZG dd � d e�ZdS )� )�absolute_importN)�OrderedDict)�canonicalize_name)� pep425tags)�InstallationError)� indent_log)�MYPY_CHECK_RUNNING)�Wheel)�Dict�Iterable�List�Optional�Tuple)�InstallRequirementc @ sX e Zd Zddd�Zdd� Zdd� Zd d � Zdd� Zddd�Zdd� Z dd� Z dd� Zd S )�RequirementSetFTc C s* t � | _|| _|| _g | _g | _g | _dS )z!Create a RequirementSet. N)r �requirements�require_hashes�check_supported_wheels�unnamed_requirementsZsuccessfully_downloaded�reqs_to_cleanup)�selfr r � r �=/usr/lib/python3.8/site-packages/pip/_internal/req/req_set.py�__init__ s zRequirementSet.__init__c C s4 t dd� | j�� D �dd� d�}d�dd� |D ��S )Nc s s | ]}|j s|V qd S �N)Z comes_from��.0�reqr r r � <genexpr>+ s z)RequirementSet.__str__.<locals>.<genexpr>c S s t | j�S r �r �name�r r r r �<lambda>, � z(RequirementSet.__str__.<locals>.<lambda>��key� c s s | ]}t |j�V qd S r ��strr r r r r r . s )�sortedr �values�join)r r r r r �__str__( s �zRequirementSet.__str__c C sB t | j�� dd� d�}d}|j| jjt|�d�dd� |D ��d�S ) Nc S s t | j�S r r r! r r r r"