관리-도구
편집 파일: req_set.cpython-310.pyc
o ƚRe� � @ s� d dl Z d dlmZ d dlmZmZmZmZmZ d dl m Z d dlmZ d dl mZ d dlmZ d dlmZ e �e�ZG d d � d �ZdS )� N)�OrderedDict)�Dict�Iterable�List�Optional�Tuple)�canonicalize_name)�InstallationError)�Wheel)�InstallRequirement)�compatibility_tagsc @ s� e Zd Zddeddfdd�Zdefdd�Zdefd d �Zdeddfdd �Z deddfdd�Z ddedee deee de ee ee f fdd�Zdedefdd�Zdedefdd�Zedee fdd��ZdS )�RequirementSetT�check_supported_wheels�returnNc C s t � | _|| _g | _dS )zCreate a RequirementSet.N)r �requirementsr �unnamed_requirements)�selfr � r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/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)� comes_from��.0�reqr r r � <genexpr> � � z)RequirementSet.__str__.<locals>.<genexpr>c S � t | jpd�S �N� �r �name�r r r r �<lambda> � z(RequirementSet.__str__.<locals>.<lambda>��key� c s � � | ]}t |j�V qd S r ��strr r r r r r r )�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 r r r r"