ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pyo

�
x�_c@s�dZddlZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
eje�Ze
rIdd	lmZdd
lmZmZmZmZmZmZmZeedfZeeefZeeeefZeeeefZeeeefZ eee fZ!eee!fZ"neddd
g�Z#d�Z$dd�Z&d�Z'd�Z(d�Z)dS(s'Validation of dependencies of packages
i����N(t
namedtuple(tcanonicalize_name(tRequirementParseError(t)make_distribution_for_install_requirement(tget_installed_distributions(tMYPY_CHECK_RUNNING(tInstallRequirement(tAnytCallabletDicttOptionaltSettTupletListtPackageDetailstversiontrequirescKs�|ikr#itd6dd6}ni}t}xxt|�D]j}t|j�}y t|j|j��||<Wq<ttfk
r�}t	j
d||�t}q<Xq<W||fS(s8Converts a list of distributions into a PackageSet.
    t
local_onlytskips%Error parsing requirements for %s: %s((tFalseRRtproject_nameRRRtOSErrorRtloggertwarningtTrue(tkwargstpackage_settproblemstdisttnamete((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pyt!create_package_set_from_installed%s cCsIi}i}x0|D](}t�}t�}|rC||�rCqnx�||jD]�}t|j�}||kr�t}	|jdk	r�|jj�}	n|	rQ|j||f�qQqQn||j	}
|j
j|
dt�sQ|j||
|f�qQqQW|rt|dt
�||<n|rt|dt
�||<qqW||fS(s�Check if a package set is consistent

    If should_ignore is passed, it should be a callable that takes a
    package name and returns a boolean.
    tprereleasestkeyN(tsetRRRRtmarkertNonetevaluatetaddRt	specifiertcontainstsortedtstr(Rt
should_ignoretmissingtconflictingtpackage_nametmissing_depstconflicting_depstreqRtmissedR((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pytcheck_package_set:s0
		
csLt�\}}t||�}t||��|t|d�fd��fS(seFor checking if the dependency graph would be consistent after     installing given requirements
    R+cs
|�kS(N((R(t	whitelist(sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pyt<lambda>vs(Rt_simulate_installation_oft_create_whitelistR3(t
to_installRt_twould_be_installed((R4sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pytcheck_install_conflictsfscCsnt�}x^|D]V}t|�}|j�}t|j�}t|j|j��||<|j|�qW|S(sBComputes the version of packages after installing to_install.
    (	R"Rtget_pkg_resources_distributionRR!RRRR&(R8Rt	installedtinst_reqt
abstract_distRR((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pyR6{s	
cCsqt|�}x^|D]V}||kr+qnx;||jD],}t|j�|kr9|j|�Pq9q9WqW|S(N(R"RRRR&(R:Rtpackages_affectedR.R1((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pyR7�s

(*t__doc__tloggingtcollectionsRtpip._vendor.packaging.utilsRtpip._vendor.pkg_resourcesRtpip._internal.distributionsRtpip._internal.utils.miscRtpip._internal.utils.typingRt	getLoggert__name__Rtpip._internal.req.req_installRttypingRRR	R
RRR
R*t
PackageSettMissingtConflictingtMissingDicttConflictingDicttCheckResulttConflictDetailsRRR$R3R;R6R7(((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/operations/check.pyt<module>s04	,		

Zerion Mini Shell 1.0