AlkantarClanX12

Your IP : 3.145.164.47


Current Path : /lib/python3.6/site-packages/pip/operations/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/pip/operations/__pycache__/check.cpython-36.pyc

3

�Pf6�@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_distsZmissing_reqs_dictZincompatible_reqs_dict�dist�keyZmissing_reqsZincompatible_reqs�r	�/usr/lib/python3.6/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)rrZinstalled_namesZmissing_requirements�requirementr	r	r
rs
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)rrZinstalled_dists_by_nameZinstalled_distrZpresent_distr	r	r
r$s
rN)rrrr	r	r	r
�<module>s