K iMDddlmZddlZddlZddlZddlZddlmZddlm Z m Z m Z ddl m Z ddlmZddlmZmZmZmZe d Zd d gZGd d Zd Zej0j3ds.ej0dk7r d ddZ d ddZeddgz Zyyy)) annotationsN)CodeType)AnyLiteralTypeVar)Version)_imp) PY_COMPILED PY_FROZEN PY_SOURCE find_module_TRequirercTeZdZdZ d d dZdZdZ d d dZd dZd dZ y)rz7A prerequisite to building or installing a distributionNc~||t}| ||}|d}|jjt|`y)N __version__)r__dict__updatelocalsself)rnamerequested_versionmodulehomepage attributeformats X/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/depends.py__init__zRequire.__init__sJ >/;F   &'8 9  )  VX& Ich|j|jd|jS|jS)z0Return full package/distribution name, w/version-)rr)rs r full_namezRequire.full_name+s4  ! ! -ii[$"8"8!9: :yyr c|jduxs>|jduxs.t|dk7xr|j||jk\S)z%Is 'version' sufficiently up-to-date?Nunknown)rrstrr)rversions r version_okzRequire.version_ok1sS NNd " ?{{d" ?7|y(? G$(>(>>  r c$|j/ t|j|\}}}|r|j |St |j|j||}|!||ur|j |j |S|S#t$rYywxYw)aGet version number of installed module, 'None', or 'default' Search 'paths' for module. If not found, return 'None'. If found, return the extracted version attribute, or 'default' if no version attribute was specified, or the value cannot be determined without importing the module. The version is formatted according to the requirement's version format (if any), unless it is 'None' or the supplied 'default'. N)rrr ImportErrorcloseget_module_constantr)rpathsdefaultf_p_ivs r get_versionzRequire.get_version:s >> ! ' U; 2r N  T^^We L =Qg-$++2I;;q> !  sB BBc(|j|duS)z/Return true if dependency is present on 'paths'N)r3)rr-s r is_presentzRequire.is_presentWs&d22r c^|j|}|y|jt|S)z>Return true if dependency is present and up-to-date on 'paths'F)r3r(r&)rr-r's r is_currentzRequire.is_current[s-""5) ?s7|,,r )NN)rr&returnNone)Nr%)r.z_T | Literal['unknown']r9z$_T | Literal['unknown'] | None | AnyN) __name__ __module__ __qualname____doc__rr#r(r3r5r7r rrrsXA   (  >G#: -:3-r cjtjd}|s|Stj|S)Nc3Kdywr;r@r@r remptyzmaybe_close..emptyds  s) contextlibcontextmanagerclosing)r/rCs r maybe_closerGcs7 w   a  r javaclic t||x\}}\}}}} t|5|tk(r'|j dt j |} nr|tk(rtj||} nR|tk(rt|j |d} n-tj||| } t| |dcdddSdddt ||S#t$rYywxYw#1swY%xYw)aFind 'module' by searching 'paths', and extract 'symbol' Return 'None' if 'module' does not exist on 'paths', or it does not define 'symbol'. If the module defines 'symbol' as a constant, return the constant. Otherwise, return 'default'.Nexec)rr*rGr readmarshalloadr r get_frozen_objectr compile get_modulegetattrextract_constant) rsymbolr.r-r/path_suffix_modekindinfocodeimporteds rr,r,ss 5@5O O +At+gudd ^ 7{"q ||A"--fe<"qvvxv6 ??65$?x6 7 7 7 fg66#   7 7sCBC* C'&C'*C3c||jvryt|jj|}tjd}tjd}tjd}|}tj |D]H}|j } |j} | |k(r| J|j| }4| |k(r| |k(s| |k(r|cS|}Jy)a/Extract the constant value of 'symbol' from 'code' If the name 'symbol' is bound to a constant value by the Python code object 'code', return that value. If 'symbol' is bound to an expression, return 'default'. Otherwise, return 'None'. Return value is based on the first assignment to 'symbol'. 'symbol' must be a global, or at least a non-"fast" local in the code block. That is, only 'STORE_NAME' and 'STORE_GLOBAL' opcodes are checked, and 'symbol' must be present in 'code.co_names'. N STORE_NAME STORE_GLOBAL LOAD_CONST) co_nameslistindexdisopmapBytecodeopcodearg co_consts) r[rUr.name_idxr^r_r`const byte_codeoprhs rrTrTs  & &,,V4YY|, yy0 YY|, d+ I!!B--CZ&s+bJ&6" :L  r r,rT)N)r._T | intr9_T | int | None | Any)rn)r[rrUr&r.ror9rp) __future__rrDrdrNsystypesrtypingrrrpackaging.versionrr8r r r r rr__all__rrGplatform startswithr,rTr@r rrys"  ((%@@ T] m $L-L-^ ! ||v&3<<5+@7;7!)7 7>:<&& #&.6& &P %'9::GQ,A&r