3

Q'íc6ã@sdd„Zdd„Zdd„ZdS)cCsbi}i}xP|D]H}d|j|jf}tt||ƒƒ}|r<|||<tt||ƒƒ}|r|||<qW||fS)Nz%s==%s)Úproject_nameÚversionÚlistÚget_missing_reqsÚget_incompatible_reqs)Úinstalled_distsÚmissing_reqs_dictÚincompatible_reqs_dictÚdistÚkeyÚmissing_reqsÚincompatible_reqs©r
ú3/tmp/pip-build-l_bcah40/pip/pip/operations/check.pyÚcheck_requirementss

rccsLtdd„|Dƒƒ}tƒ}x.|jƒD]"}|jjƒ|kr"|j|ƒ|Vq"WdS)z\Return all of the requirements of `dist` that aren't present in
    `installed_dists`.

    css|]}|jjƒVqdS)N)rÚlower)Ú.0Údr
r
rú	<genexpr>sz#get_missing_reqs.<locals>.<genexpr>N)ÚsetÚrequiresrrÚadd)r	rÚinstalled_namesÚmissing_requirementsÚrequirementr
r
rrs
rccsTi}x|D]}|||j<q
Wx2|jƒD]&}|j|jƒ}|r&||kr&||fVq&WdS)zyReturn all of the requirements of `dist` that are present in
    `installed_dists`, but have incompatible versions.

    N)rrÚget)r	rÚinstalled_dists_by_nameÚinstalled_distrÚpresent_distr
r
rr$s
rN)rrrr
r
r
rÚ<module>s