3
LYf                 @   sJ   d dl Z d dlmZ d dlmZ d dlmZ e jeZ	G dd deZ
dS )    N)Command)check_requirements)get_installed_distributionsc               @   s$   e Zd ZdZdZdZdZdd ZdS )CheckCommandz7Verify installed packages have compatible dependencies.checkz
      %prog [options]c       
   	   C   s   t df d}t|\}}x~|D ]v}d|j|jf }x*|j|g D ]}tjd|j|j|j q@W x4|j|g D ]$\}}	tjd|j|j||	j|	j qlW qW |s|rdS tjd d S )NF)
local_onlyskipz%s==%sz*%s %s requires %s, which is not installed.z-%s %s has requirement %s, but you have %s %s.   zNo broken requirements found.)r   r   project_nameversiongetloggerinfo)
selfoptionsargsdistsmissing_reqs_dictincompatible_reqs_dictdistkeyrequirementactual r   e/private/var/folders/7d/20zwc49s3kn54d3vgq8bd4640000gn/T/pip-build-an2lx5zf/pip/pip/commands/check.pyrun   s     

zCheckCommand.runN)__name__
__module____qualname____doc__nameusagesummaryr   r   r   r   r   r      s
   r   )loggingpip.basecommandr   pip.operations.checkr   	pip.utilsr   	getLoggerr   r   r   r   r   r   r   <module>   s
   
