????

Your IP : 216.73.216.152


Current Path : /usr/lib/python2.7/site-packages/pip/_internal/req/
Upload File :
Current File : //usr/lib/python2.7/site-packages/pip/_internal/req/req_set.pyc

�
}�\]c@@s�ddlmZddlZddlmZddlmZddlmZddl	m
Z
ddlmZe
r�ddl
mZmZmZmZmZdd	lmZneje�Zd
efd��YZdS(i(tabsolute_importN(tOrderedDict(tInstallationError(t
indent_log(tMYPY_CHECK_RUNNING(tWheel(tDicttIterabletListtOptionaltTuple(tInstallRequirementtRequirementSetcB@sSeZeed�Zd�Zd�Zddd�Zd�Z	d�Z
d�ZRS(cC@sFt�|_||_||_i|_g|_g|_g|_dS(s!Create a RequirementSet.
        N(Rtrequirementstrequire_hashestcheck_supported_wheelstrequirement_aliasestunnamed_requirementstsuccessfully_downloadedtreqs_to_cleanup(tselfRR((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyt__init__s					cC@sgg|jj�D]}|js|^q}|jdd��djg|D]}t|j�^qK�S(NtkeycS@s
|jj�S(N(tnametlower(treq((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyt<lambda>(st (R
tvaluest
comes_fromtsorttjointstrR(RRtreqs((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyt__str__$scC@s}g|jj�D]}|^q}|jdd��djg|D]}t|j�^qB�}d|jjt|�|fS(NRcS@s
|jj�S(N(RR(R((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyR.ss, s"<%s object; %d requirement(s): %s>(	R
RRRR Rt	__class__t__name__tlen(RRR!treqs_str((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyt__repr__+s
"+c	C@sw|j}|j|�s8tjd||j�gdfS|jr�|jjr�t|jj	�}|j
r�|j�r�td|j	��q�n|j
|dkks�td��|s�|jj|�|gdfSy|j|�}Wntk
r�d}nX|dkoB|oB|joB|j|jkoB|jj|jjk}|rgtd|||f��n|s�||j|<|j�|kr�||j|j�<n|g|fS|js�|jr�g|fS|jo�|jo�|jj|jjk}|r |jj|�td|��nt|_ttt|j�t|j�B��|_tj d||j�|g|fS(s&Add install_req as a requirement to install.

        :param parent_req_name: The name of the requirement that needed this
            added. The name is used because when multiple unnamed requirements
            resolve to the same name, we could otherwise end up with dependency
            links that point outside the Requirements set. parent_req must
            already be added. Note that None implies that this is a user
            supplied requirement, vs an inferred one.
        :param extras_requested: an iterable of extras used to evaluate the
            environment markers.
        :return: Additional requirements to scan. That is either [] if
            the requirement is not applicable, or [install_req] if the
            requirement is applicable and has just been added.
        s6Ignoring %s: markers '%s' don't match your environments-%s is not a supported wheel on this platform.sTa direct req shouldn't have a parent and also, a non direct req should have a parents5Double requirement given: %s (already in %s, name=%r)shCould not satisfy constraints for '%s': installation from path or url cannot be constrained to a versionsSetting %s extras to: %sN(!Rt
match_markerstloggertinfotmarkerstNonetlinktis_wheelRtfilenameRt	supportedRt	is_directtAssertionErrorRtappendtget_requirementtKeyErrort
constrainttextrasRt	specifierR
RRtpathRtFalsettupletsortedtsettdebug(	Rtinstall_reqtparent_req_nametextras_requestedRtwheeltexisting_reqthas_conflicting_requirementtdoes_not_satisfy_constraint((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pytadd_requirement3sh	

	






		
	%
cC@s[|j�}||jkr,|j|jsS||jkrW|j|j|jrWtStS(N(RR
R6RtTrueR:(Rtproject_nameR((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pythas_requirement�scC@slxU||j�fD]A}||jkr3|j|S||jkr|j|j|SqWtd|��dS(NsNo project with the name %r(RR
RR5(RRHR((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyR4�scC@s?tjd�t��#x|jD]}|j�q!WWdQXdS(sClean up files, remove builds.sCleaning up...N(R)R>RRtremove_temporary_source(RR((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyt
cleanup_files�s

N(R$t
__module__R:RGRR"R'R,RFRIR4RK(((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyRs		q	
		(t
__future__RtloggingtcollectionsRtpip._internal.exceptionsRtpip._internal.utils.loggingRtpip._internal.utils.typingRtpip._internal.wheelRttypingRRRR	R
tpip._internal.req.req_installRt	getLoggerR$R)tobjectR(((s8/tmp/pip-install-ewDPok/pip/pip/_internal/req/req_set.pyt<module>s(