3 Pff@sJddlZddlmZddlmZddlmZejeZ GdddeZ dS)N)Command)check_requirements)get_installed_distributionsc@s$eZdZdZdZdZdZddZdS) CheckCommandz7Verify installed packages have compatible dependencies.Zcheckz %prog [options]c Cstdfd}t|\}}x~|D]v}d|j|jf}x*|j|gD]}tjd|j|j|jq@Wx4|j|gD]$\}} tjd|j|j|| j| jqlWqW|s|rdStjddS)NF)Z local_onlyskipz%s==%sz*%s %s requires %s, which is not installed.z-%s %s has requirement %s, but you have %s %s.zNo broken requirements found.)rrZ project_nameversiongetloggerinfo) selfZoptionsargsZdistsZmissing_reqs_dictZincompatible_reqs_dictZdistkeyZ requirementactualr/usr/lib/python3.6/check.pyruns     zCheckCommand.runN)__name__ __module__ __qualname____doc__nameZusageZsummaryrrrrrr s r) ZloggingZpip.basecommandrZpip.operations.checkrZ pip.utilsrZ getLoggerrr rrrrrs