3 ]f@sJddlZddlmZddlmZddlmZejeZ GdddeZ dS)N)Command)check_requirements)get_installed_distributionsc@s$eZdZdZdZdZdZddZdS) CheckCommandz7Verify installed packages have compatible dependencies.checkz %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) 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.)rr project_nameversiongetloggerinfo) selfoptionsargsdistsmissing_reqs_dictincompatible_reqs_dictdistkey requirementactualr1/tmp/pip-build-8jg9gmni/pip/pip/commands/check.pyruns     zCheckCommand.runN)__name__ __module__ __qualname____doc__nameusagesummaryrrrrrr s r) loggingpip.basecommandrpip.operations.checkr pip.utilsr getLoggerrr rrrrrs