3
zYðif  ã               @   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 |r¤d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   ú1/tmp/pip-build-ue6tjl93/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
   
