U âQab/ ã @s@ddlmZmZmZddlZddlZddlZddlZddlm Z m Z m Z m Z ddlm Z mZmZmZddlmZddlmZddlmZmZd d d d d gZGdd „d eƒZGdd „d eƒZGdd „d eƒZGdd„deƒZGdd„deƒZGdd„deƒZ Gdd„deƒZ!edƒedƒBedƒBedƒBedƒBedƒBedƒBed ƒBed!ƒBed"ƒBed#ƒBed$ƒBed%ƒBed&ƒBed'ƒBed(ƒBed)ƒBed*ƒBZ"d#d"ddddd+œZ#e" $d,d-„¡ed.ƒed/ƒBed0ƒBed1ƒBed2ƒBed3ƒBed4ƒBed5ƒBZ%e%ed6ƒBed7ƒBZ&e& $d8d-„¡ed9ƒed:ƒBZ'e' $d;d-„¡ed<ƒed=ƒBZ(e"e'BZ)ee)e&e)ƒZ*e* $d>d-„¡ed?ƒ +¡Z,ed@ƒ +¡Z-eƒZ.e*ee,e.e-ƒBZ/e.e/e e(e.ƒ>e e.e Z0dAdB„Z1dSdDdE„Z2dFd-„dGd-„ej3ej4ej5ej6ej7ej8dHœZ9dIdJ„Z:eƒZ;dKdL„ZdQd „Z?GdRd „d eƒZ@dS)Té)Úabsolute_importÚdivisionÚprint_functionN)ÚParseExceptionÚ ParseResultsÚ stringStartÚ stringEnd)Ú ZeroOrMoreÚGroupÚForwardÚ QuotedString)ÚLiteralé)Ú string_types)Ú SpecifierÚInvalidSpecifierÚ InvalidMarkerÚUndefinedComparisonÚUndefinedEnvironmentNameÚMarkerÚdefault_environmentc@seZdZdZdS)rzE An invalid marker was found, users should refer to PEP 508. N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©rrúH/usr/lib/python3.8/site-packages/setuptools/_vendor/packaging/markers.pyrsc@seZdZdZdS)rzP An invalid operation was attempted on a value that doesn't support it. Nrrrrrrsc@seZdZdZdS)rz\ A name was attempted to be used that does not exist inside of the environment. Nrrrrrr%sc@s,eZdZdd„Zdd„Zdd„Zdd„Zd S) ÚNodecCs ||_dS©N)Úvalue)Úselfr rrrÚ__init__.sz Node.__init__cCs t|jƒSr)Ústrr ©r!rrrÚ__str__1sz Node.__str__cCsd |jjt|ƒ¡S)Nz <{0}({1!r})>)ÚformatÚ __class__rr#r$rrrÚ__repr__4sz Node.__repr__cCst‚dSr)ÚNotImplementedErrorr$rrrÚ serialize7szNode.serializeN)rrrr"r%r(r*rrrrr,src@seZdZdd„ZdS)ÚVariablecCst|ƒSr©r#r$rrrr*=szVariable.serializeN©rrrr*rrrrr+;sr+c@seZdZdd„ZdS)ÚValuecCs d |¡S)Nz"{0}")r&r$rrrr*CszValue.serializeNr-rrrrr.Asr.c@seZdZdd„ZdS)ÚOpcCst|ƒSrr,r$rrrr*Isz Op.serializeNr-rrrrr/Gsr/Úimplementation_versionÚplatform_python_implementationÚimplementation_nameÚpython_full_versionÚplatform_releaseÚplatform_versionÚplatform_machineÚplatform_systemÚpython_versionÚ sys_platformÚos_nameúos.nameú sys.platformúplatform.versionúplatform.machineúplatform.python_implementationÚpython_implementationZextra)r;r<r=r>r?r@cCstt |d|d¡ƒS©Nr)r+ÚALIASESÚget©ÚsÚlÚtrrrÚiórHz===ú==ú>=ú<=ú!=z~=ú>ú<únot inÚincCs t|dƒSrA)r/rDrrrrHwrIú'ú"cCs t|dƒSrA)r.rDrrrrHzrIÚandÚorcCs t|dƒSrA)ÚtuplerDrrrrH�rIú(ú)cCs t|tƒrdd„|DƒS|SdS)NcSsg|] }t|ƒ‘qSr)Ú_coerce_parse_result)Ú.0ÚirrrÚ �sz(_coerce_parse_result..)Ú isinstancer)ÚresultsrrrrY�s rYTcCs¨t|tttfƒst‚t|tƒrHt|ƒdkrHt|dttfƒrHt|dƒSt|tƒr‚dd„|Dƒ}|rnd |¡Sdd |¡dSn"t|tƒr d dd „|Dƒ¡S|SdS) Nrrcss|]}t|dd�VqdS)F)ÚfirstN)Ú_format_marker©rZÚmrrrÚ  sz!_format_marker..ú rWrXcSsg|] }| ¡‘qSr)r*rarrrr\¦sz"_format_marker..)r]ÚlistrVrÚAssertionErrorÚlenr`Újoin)Úmarkerr_Úinnerrrrr`”sÿ    r`cCs||kSrr©ÚlhsÚrhsrrrrH¬rIcCs||kSrrrkrrrrH­rI)rQrPrOrLrJrMrKrNcCslztd | ¡|g¡ƒ}Wntk r.Yn X| |¡St | ¡¡}|dkrbtd |||¡ƒ‚|||ƒS)NÚz#Undefined {0!r} on {1!r} and {2!r}.) rrhr*rÚcontainsÚ _operatorsrCrr&)rlÚoprmÚspecZoperrrrÚ_eval_op·s  ÿrscCs&| |t¡}|tkr"td |¡ƒ‚|S)Nz/{0!r} does not exist in evaluation environment.)rCÚ _undefinedrr&)Ú environmentÚnamer rrrÚ_get_envËs  ÿrwc CsÐgg}|D]²}t|tttfƒs"t‚t|tƒrB|d t||ƒ¡q t|tƒrž|\}}}t|tƒrtt||j ƒ}|j }n|j }t||j ƒ}|d t |||ƒ¡q |dksªt‚|dkr | g¡q t dd„|DƒƒS)Néÿÿÿÿ)rTrUrUcss|]}t|ƒVqdSr)Úall)rZÚitemrrrrcîsz$_evaluate_markers..) r]rerVrrfÚappendÚ_evaluate_markersr+rwr rsÚany) ZmarkersruÚgroupsrirlrqrmZ lhs_valueZ rhs_valuerrrr|Ös"        r|cCs2d |¡}|j}|dkr.||dt|jƒ7}|S)Nz{0.major}.{0.minor}.{0.micro}Úfinalr)r&Ú releaselevelr#Úserial)ÚinfoÚversionZkindrrrÚformat_full_versionñs  r„c Cslttdƒr ttjjƒ}tjj}nd}d}||tjt ¡t  ¡t  ¡t ¡t  ¡t  ¡t  ¡dd…tjdœ S)NÚimplementationÚ0rné) r2r0r:r6r4r7r5r3r1r8r9) ÚhasattrÚsysr„r…rƒrvÚosÚplatformÚmachineÚreleaseÚsystemr8r@)Ziverr2rrrrùs"   õc@s.eZdZdd„Zdd„Zdd„Zd dd „ZdS) rc Cs`ztt |¡ƒ|_WnFtk rZ}z(d |||j|jd…¡}t|ƒ‚W5d}~XYnXdS)Nz+Invalid marker: {0!r}, parse error at {1!r}é)rYÚMARKERZ parseStringÚ_markersrr&Zlocr)r!riÚeZerr_strrrrr"sÿzMarker.__init__cCs t|jƒSr)r`r‘r$rrrr%szMarker.__str__cCsd t|ƒ¡S)Nz)r&r#r$rrrr(szMarker.__repr__NcCs$tƒ}|dk r| |¡t|j|ƒS)a$Evaluate a marker. Return the boolean from evaluating the given marker against the environment. environment is an optional argument to override all or part of the determined environment. The environment is determined from the current Python process. N)rÚupdater|r‘)r!ruZcurrent_environmentrrrÚevaluate s  zMarker.evaluate)N)rrrr"r%r(r”rrrrrs)T)AZ __future__rrrÚoperatorrŠr‹r‰Zsetuptools.extern.pyparsingrrrrr r r r r ÚLZ_compatrZ specifiersrrÚ__all__Ú ValueErrorrrrÚobjectrr+r.r/ZVARIABLErBZsetParseActionZ VERSION_CMPZ MARKER_OPZ MARKER_VALUEZBOOLOPZ MARKER_VARZ MARKER_ITEMÚsuppressZLPARENZRPARENZ MARKER_EXPRZ MARKER_ATOMr�rYr`ÚltÚleÚeqÚneÚgeÚgtrprsrtrwr|r„rrrrrrÚsä  þÿþýüûúùø ÷ ö õ ô óòñðïÿúÿþýüûúùÿ     ø