관리-도구
편집 파일: req_set.cpython-38.pyc
U ʗRe* � @ sX d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z e � e�ZG dd� d�Z dS )� N)�OrderedDict)�Dict�List)�canonicalize_name)�InstallRequirementc @ s� e Zd Zdedd�dd�Zed�dd�Zed�d d �Zedd�dd �Z edd�dd�Z eed�dd�Zeed�dd�Ze ee d�dd��Ze ee d�dd��ZdS )�RequirementSetTN)�check_supported_wheels�returnc C s t � | _|| _g | _dS )zCreate a RequirementSet.N)r �requirementsr �unnamed_requirements)�selfr � r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/req/req_set.py�__init__ s zRequirementSet.__init__)r 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> s z)RequirementSet.__str__.<locals>.<genexpr>c S s t | jp d�S �N� �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 | jp d�S r r r r r r r r z)RequirementSet.__repr__.<locals>.<lambda>r z4<{classname} object; {count} requirement(s): {reqs}>z, c s s | ]}t |j�V qd S r r r r r r r &