Your IP : 3.145.72.55


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyc

�
�Rec@s�dZddlZddlZddlZddlZddlmZmZmZddl	m
Z
mZdgZd�Z
defd	��YZd
�Ze�Z[e�Zdd�ZdS(sG
Parser for the environment markers micro-language defined in PEP 508.
i����Ni(tpython_implementationturlparsetstring_types(tin_venvtparse_markert	interpretcCs)t|t�s|rtS|ddkS(Nis'"(t
isinstanceRtFalse(to((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyt_is_literalst	EvaluatorcBs�eZdZid�d6d�d6d�d6d�d6d	�d
6d�d6d
�d6d�d6d�d6d�d6d�d6d�d6Zd�ZRS(s;
    This class is used to evaluate marker expessions.
    cCs
||kS(N((txty((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyt<lambda>$ts==cCs
||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
%Rs===cCs||kp||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
&Rs~=cCs
||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
'Rs!=cCs
||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
(Rt<cCs||kp||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
)Rs<=cCs
||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
*Rt>cCs||kp||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
+Rs>=cCs
|o	|S(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
,RtandcCs
|p	|S(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
-RtorcCs
||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
.RtincCs
||kS(N((RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
/Rsnot inc	Cs*t|t�r[|ddkr/|dd!}q&||krNtd|��n||}n�t|t�spt�|d}||jkr�td|��n|d}|d	}t|d�r�t|d	�r�td
|||f��n|j||�}|j||�}|j|||�}|S(s�
        Evaluate a marker expression returned by the :func:`parse_requirement`
        function in the specified context.
        is'"ii����sunknown variable: %stopsop not implemented: %stlhstrhssinvalid comparison: %s %s %s(	RRtSyntaxErrortdicttAssertionErrort
operationstNotImplementedErrorR	tevaluate(	tselftexprtcontexttresultRtelhsterhsRR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR2s$



 (t__name__t
__module__t__doc__RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyR
s











cCs�d�}ttd�r9|tjj�}tjj}nd}d}i|d6|d6tjd6tj�d6tj�d	6tj	�d
6tj
�d6tj�d6tt��d
6tj
�d6tj
�d d6tjd6}|S(NcSsSd|j|j|jf}|j}|dkrO||dt|j�7}n|S(Ns%s.%s.%stfinali(tmajortminortmicrotreleaseleveltstrtserial(tinfotversiontkind((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pytformat_full_versionNs
	timplementationt0Rtimplementation_nametimplementation_versiontos_nametplatform_machinetplatform_python_implementationtplatform_releasetplatform_systemtplatform_versiontplatform_in_venvtpython_full_versionitpython_versiontsys_platform(thasattrtsysR1R.tnametostplatformtmachineRtreleasetsystemR+RR=(R0R4R3R ((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pytdefault_contextMs(	







cCs�yt|�\}}Wn)tk
rA}td||f��nX|rq|ddkrqtd||f��ntt�}|r�|j|�ntj||�S(s�
    Interpret a marker and return a result depending on environment.

    :param marker: The marker to interpret.
    :type marker: str
    :param execution_context: The context used for name lookup.
    :type execution_context: mapping
    s)Unable to interpret marker syntax: %s: %sit#s*unexpected trailing data in marker: %s: %s(Rt	ExceptionRRtDEFAULT_CONTEXTtupdatet	evaluatorR(tmarkertexecution_contextRtrestteR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyRqs	(R%RBR@RCtretcompatRRRtutilRRt__all__R	tobjectR
RGRJRLtNoneR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/markers.pyt<module>	s		/			

?>