2biSrSSKrSSKrSSKrSSKrSSKJr SSKJrJ r SSK J r S/r \R"S5rS rS r"S S \5r\R"S 5rSr\"5rC\"5rSSjrg)zG Parser for the environment markers micro-language defined in PEP 508. N) string_types)in_venv parse_marker)NormalizedVersion interpretz<((\d+(\.\d+)*\w*)|\'(\d+(\.\d+)*\w*)\'|\"(\d+(\.\d+)*\w*)\")cL[U[5(aU(dgUSS;$)NFr'") isinstancer)os ڍ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/distlib/markers.py _is_literalrs" a & &a Q45=c/n[RU5H.nUR[UR 5S55 M0 [ U5$)Nr)_VERSION_PATTERNfinditerappendNVgroupsset)sresultms r _get_versionsr!sA F  & &q ) bA'(* v;rc T\rSrSrSrSSSSSSS S S S S SS. rSrSrg) Evaluator'z3 This class is used to evaluate marker expessions. c X:H$Nxys r Evaluator.-16rc X:H$rr r!s r r$r%.sAFrc X:H=(d X:$rr r!s r r$r%/s16?QU?rc X:g$rr r!s r r$r%0r&rc X:$rr r!s r r$r%115rc X:H=(d X:$rr r!s r r$r%2AFOaeOrc X:$rr r!s r r$r%3r+rc X:H=(d X:$rr r!s r r$r%4r-rcU=(a U$rr r!s r r$r%5s AG!GrcU=(d U$rr r!s r r$r%6s 166rc X;$rr r!s r r$r%7r&rc X;$rr r!s r r$r%8sqzr) =====~=!=<<=>>=andorinnot inc[U[5(a*USS;aUSSnU$X;a[SU-5eX!nU$[U[5(deUSnX@R;a[ SU-5eUSnUS n[ US5(a*[ US 5(a[S U<S U<S U<35eURXR5nURXb5nUS :XdUS :XaUS ;a[U5n[U5nO"US :XaUS;a[U5n[U5nURU"Xx5nU$)zk Evaluate a marker expression returned by the :func:`parse_requirement` function in the specified context. rr rzunknown variable: %sopzop not implemented: %slhsrhszinvalid comparison:  python_version)r8r9r:r;r5r4r7r6)r>r?) r r SyntaxErrordict operationsNotImplementedErrorrevaluaterr) selfexprcontextrrBelhserhsrCrDs r rKEvaluator.evaluate;sT dL ) )Aw%a2 /&%&.format_full_version`sK $ DJJ C   7? AwT[[!11 1Grimplementation0r) implementation_nameimplementation_versionos_nameplatform_machineplatform_python_implementationplatform_releaseplatform_systemplatform_versionplatform_in_venvpython_full_versionrF sys_platform)hasattrsysrgrcnameplatformrF_DIGITSmatchgrouposmachinepython_implementationreleasesystemr`r)rerkrjppvrpvrs r default_contextr_ss$%%!4S5G5G5O5O!P!0055!$   ! ! #C cA B2"877$,,.*2*H*H*J$,,.#??,$,,. N"  F Mrc&[U5up#U(aUSS:wa[SU<SU<35e[[5nU(aUR U5 [ RX%5$![an[SU<SU<35eSnAff=f)z 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 z#Unable to interpret marker syntax: z: Nr#z$unexpected trailing data in marker: )r ExceptionrGrHDEFAULT_CONTEXTupdate evaluatorrK)markerexecution_contextrMresterNs r rrsU!&)  Q3&RVWXX?#G()   d ,, UQRSTTUs A.. B8B  Br)rVr|rervrxcompatrutilrrrcrr__all__compilerrrobjectrryrrrrr rr rs~  ', -::]^  44l **[ ! D"# K -r