ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyo

�
x�_c@s~ddlZddlmZddlmZmZmZmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZmZmZdd	lmZdd
lmZddlmZdd
lmZmZmZmZmZddl m!Z!ddl"m#Z#m$Z$m%Z%erUddl&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0ddl1m2Z2ddl3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:m;Z;ddl<m=Z=ddl>m?Z?ddl@mAZAddlBmCZCddlmDZDmEZEddlmFZFe0d�ZGe(e?eGfZHe(e4eDfZInejJeK�ZLdeMfd��YZNdS(i����N(tcanonicalize_name(tDistributionNotFoundtInstallationErrortUnsupportedPythonVersiontUnsupportedWheel(tWheel(tInstallRequirement(t
get_supported(tHashes(tdist_in_site_packagestdist_in_usersitetget_installed_distributions(tMYPY_CHECK_RUNNING(trunning_under_virtualenvi(t
Constraint(tAlreadyInstalledCandidatetEditableCandidatetExtrasCandidatet
LinkCandidatetRequiresPythonCandidate(tFoundCandidates(tExplicitRequirementtRequiresPythonRequirementtSpecifierRequirement(
t	FrozenSettDicttIterabletIteratortListtOptionaltSequencetSettTupletTypeVar(tSpecifierSet(t_BaseVersion(tDistribution(tResolutionImpossible(t
CacheEntryt
WheelCache(t
PackageFinder(tLink(tRequirementPreparer(tInstallRequirementProvider(t	CandidatetRequirement(t
BaseCandidatetCtFactorycBs�eZded�Zed��Zd�Zd�Zd�Z	d�Z
d�Zd�Zdd�Z
d	�Zd
�Zd�Zd�Zd
�ZRS(cCs�||_||_||_t|	�|_||_||_||_||_|
|_	i|_
i|_|s�d�tdt
�D�|_n	i|_dS(NcSs"i|]}|t|j��qS((Rtproject_name(t.0tdist((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pys
<dictcomp>hs	t
local_only(t_findertpreparert_wheel_cacheRt_python_candidatet_make_install_req_from_spect_use_user_sitet_force_reinstallt_ignore_requires_pythontuse_lazy_wheelt_link_candidate_cachet_editable_candidate_cacheRtFalset_installed_dists(tselftfinderR6tmake_install_reqtwheel_cachet
use_user_sitetforce_reinstalltignore_installedtignore_requires_pythontpy_version_infot
lazy_wheel((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt__init__Ks										cCs|jS(N(R;(RB((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyRGnscCs,t||d|�}|r(t||�S|S(Ntfactory(RR(RBR3textrasttemplatetbase((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt_make_candidate_from_distss
c	Cs�|jrS||jkrCt||d|d|d|�|j|<n|j|}nG||jkr�t||d|d|d|�|j|<n|j|}|r�t||�S|S(NRMtnametversion(teditableR?RR>RR(RBtlinkRNRORRRSRP((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt_make_candidate_from_links	((

c	s|s
dS|d�t�jj��t��xG|D]?}�|jjM��|jdt�M��t|j�O�q6Wd}�j	r���j
kr��j
�}�j|jdt
�r��jd|d�d��}q�n������fd�}t|||�S(	Nittrust_internettprereleasesR3RNROc3sw�jjd�d�d��}xOtt|j���D]5}�jd|jd�d�d�d|j�Vq:WdS(	NR1t	specifierthashesRURNRORRRS(R5tfind_best_candidatetreversedtlisttiter_applicableRVRURS(tresulttican(RNRZRRRBRYRO(s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pytiter_index_candidates�s			((RtreqRRt	frozensetRYRZR@RNtNoneR;RAtcontainsRStTrueRQR(	RBtireqsRYRZtprefers_installedtireqtinstalled_candidatetinstalled_distRa((RNRZRRRBRYROs\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt_iter_found_candidates�s,
	

	c
s�t�}g}xX�D]P}|j�\}}|dk	rJ|j|�n|dk	r|j|�qqW|s�|j||j|j|�S|r�|j�j	}	t
dj|	���n�fd�|D�S(NshCould not satisfy constraints for {!r}: installation from path or url cannot be constrained to a versionc3s1|]'�t�fd��D��r�VqdS(c3s|]}|j��VqdS(N(tis_satisfied_by(R2Rb(tc(s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pys	<genexpr>�sN(tall(R2(trequirements(Rns\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pys	<genexpr>�s(tsettget_candidate_lookupRdtaddtappendRlRYRZtpopRRRtformat(
RBRpt
constraintRhtexplicit_candidatesRgRbtcandRiRR((Rps\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pytfind_candidates�s(	
c
Cs�|j|�s,tjd|j|j�dS|js?t|�S|jjr�t	|jj
�}|j|jj
j��s�dj|j
�}t|��q�n|j|jdt|j�d|d|jr�t|j�nddd�}|j|�S(Ns6Ignoring %s: markers '%s' don't match your environments-{} is not a supported wheel on this platform.RNRORRRS(t
match_markerstloggertinfoRRtmarkersRdRURtis_wheelRtfilenamet	supportedR5t
target_pythontget_tagsRvRRVRcRNRtmake_requirement_from_candidate(RBRitrequested_extrastwheeltmsgRy((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt!make_requirement_from_install_req�s(	
		cCs
t|�S(N(R(RBt	candidate((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyR�scCs"|j||�}|j||�S(N(R9R�(RBRYt
comes_fromR�Ri((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pytmake_requirement_from_specscCs)|js|dkrdSt||j�S(N(R<RdRR8(RBRY((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt make_requires_python_requirement$scCsA|jdks|jjrdS|jjd|d|dt��S(s�Look up the link in the wheel cache.

        If ``preparer.require_hashes`` is True, don't use the wheel cache,
        because cached wheels, always built locally, have different hashes
        than the files downloaded from the index server and thus throw false
        hash mismatches. Furthermore, cached wheels at present have
        nondeterministic contents due to file modification times.
        RUtpackage_nametsupported_tagsN(R7RdR6trequire_hashestget_cache_entryR(RBRURR((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pytget_wheel_cache_entry*s
cCs||jj|j�}|dkr%dS|js2|St|�rB|St�rxt|�rxtdj	|j
|j���ndS(NsVWill not install to the user site because it will lack sys.path precedence to {} in {}(RAtgetRRRdR:R
R
R	RRvR1tlocation(RBR�R3((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pytget_dist_to_uninstall<s	cCs@d}|jd|jd|jjdt|j��}t|�S(NsOPackage {package!r} requires a different Python: {version} not in {specifier!r}tpackageRSRY(RvRRR8RStstrRYR(RBtrequirementROtmessage_formattmessage((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt_report_requires_python_errorZs		c
Cs�x9|jD].}t|jt�r
|j|j|j�Sq
Wt|j�dkr�|jd\}}|dkrt|�}ndj	||j
�}tjd|�t
dj	|��Sd�}d�}d�}g}	xK|jD]@\}}|dkr	|j�}
n||�}
|	j|
�q�W|	r;||	�}nd	}d
j	|�}tj|�d}x`|jD]U\}}|d}|r�|d
j	|j
|j�}n
|d}||j�}qmW|ddddd}tj|�t
d�S(Niis{} (from {})s:Could not find a version that satisfies the requirement %ss%No matching distribution found for {}cSs7t|�dkr|dSdj|d �d|dS(Niis, i����s and (tlentjoin(tparts((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt	text_join�scSsdj|j|j�S(Ns{} {}(RvRRRS(Ry((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt
readable_form�scSsb|j�}|s|jr3dj|j|j�St|jt�rUt|jj�St|j�S(Ns{} {}(tget_install_requirementR�RvRRRSt
isinstanceRR�(tparentRi((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pytdescribe_trigger�ssthe requested packagessOCannot install {} because these package versions have conflicting dependencies.s
The conflict is caused by:s
    s{} {} depends on sThe user requested s

sTo fix this you could try to:
s91. loosen the range of package versions you've specified
s92. remove package versions to allow pip attempt to solve sthe dependency conflict
snResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies(tcausesR�R�RR�R�R�RdR�RvRRR|tcriticalRtformat_for_errorRtRSR}(
RBtetcauseRbR�treq_dispR�R�R�ttriggersttriggerR}R�((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pytget_installation_errorksX					

	

N((t__name__t
__module__RdR@RLtpropertyRGRQRVRlRzR�R�R�R�R�R�R�R�(((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyR0Js			<	&						(Otloggingtpip._vendor.packaging.utilsRtpip._internal.exceptionsRRRRtpip._internal.models.wheelRtpip._internal.req.req_installRt&pip._internal.utils.compatibility_tagsRtpip._internal.utils.hashesRtpip._internal.utils.miscR	R
Rtpip._internal.utils.typingRtpip._internal.utils.virtualenvR
RPRt
candidatesRRRRRtfound_candidatesRRpRRRttypingRRRRRRRRR R!t pip._vendor.packaging.specifiersR"tpip._vendor.packaging.versionR#tpip._vendor.pkg_resourcesR$tpip._vendor.resolvelibR%tpip._internal.cacheR&R't"pip._internal.index.package_finderR(tpip._internal.models.linkR)t pip._internal.operations.prepareR*tpip._internal.resolution.baseR+R,R-R.R/tCachetVersionCandidatest	getLoggerR�R|tobjectR0(((s\/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/factory.pyt<module>s>"(F


Zerion Mini Shell 1.0