abc@seddlZddlmZddlmZddlmZejeZ defdYZ dS(iN(tCommand(tcheck_requirements(tget_installed_distributionst CheckCommandcBs)eZdZdZdZdZdZRS(s7Verify installed packages have compatible dependencies.tchecks %prog [options]c Cstdtdd}t|\}}x|D]}d|j|jf}x9|j|gD]%}tjd|j|j|jq]WxH|j|gD]4\}} tjd|j|j|| j| jqWq.W|s|rdStjddS( Nt local_onlytskips%s==%ss*%s %s requires %s, which is not installed.s-%s %s has requirement %s, but you have %s %s.isNo broken requirements found.((RtFalseRt project_nametversiontgettloggertinfo( tselftoptionstargstdiststmissing_reqs_dicttincompatible_reqs_dicttdisttkeyt requirementtactual((s6/usr/lib/python2.7/site-packages/pip/commands/check.pytruns   (t__name__t __module__t__doc__tnametusagetsummaryR(((s6/usr/lib/python2.7/site-packages/pip/commands/check.pyR s ( tloggingtpip.basecommandRtpip.operations.checkRt pip.utilsRt getLoggerRR R(((s6/usr/lib/python2.7/site-packages/pip/commands/check.pyts