Sindbad~EG File Manager
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�keyZmissing_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_distrZpresent_distr r r
r$s
rN)rrrr r r r
�<module>s
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists