관리-도구
편집 파일: check.cpython-38.pyc
U &?�f� � @ s� d dl Z d dlmZ d dlmZ d dlmZ d dlmZm Z d dl mZ d dlm Z mZmZ d dlmZ d d lmZ e �e�ZG d d� de�ZdS )� N)�Values)�List)�Command)�ERROR�SUCCESS)�get_default_environment)�check_package_set�check_unsupported�!create_package_set_from_installed)� get_supported)�write_outputc @ s. e Zd ZdZdZdZeee e d�dd�Z dS )�CheckCommandz7Verify installed packages have compatible dependencies.Tz %prog [options])�options�args�returnc C s� t � \}}t|�\}}ttt� �� t� ��}|D ].}|| j} || D ]} td|| | d � qFq0|D ]4}|| j} || D ]\}}} td|| | ||� qzqd|D ]}td|j |j� q�|s�|s�|s�|r�t S td� tS d S )Nz*%s %s requires %s, which is not installed.r z-%s %s has requirement %s, but you have %s %s.z'%s %s is not supported on this platformzNo broken requirements found.)r r �listr r �iter_installed_distributionsr �versionr �raw_namer r )�selfr r �package_setZ parsing_probs�missing�conflicting�unsupported�project_namer � dependency�dep_name�dep_version�req�package� r �J/opt/hc_python/lib/python3.8/site-packages/pip/_internal/commands/check.py�run sL �� � ��zCheckCommand.runN)�__name__� __module__�__qualname__�__doc__�ignore_require_venv�usager r �str�intr"