/usr/lib/python3/dist-packages/setuptools/__pycache__
NameSizeModeActions
archive_util.cpython-310.pyc58140644editdlrm
build_meta.cpython-310.pyc94280644editdlrm
config.cpython-310.pyc208970644editdlrm
depends.cpython-310.pyc52640644editdlrm
dep_util.cpython-310.pyc8250644editdlrm
dist.cpython-310.pyc363050644editdlrm
errors.cpython-310.pyc14700644editdlrm
extension.cpython-310.pyc19140644editdlrm
glob.cpython-310.pyc37030644editdlrm
installer.cpython-310.pyc29490644editdlrm
launch.cpython-310.pyc8750644editdlrm
monkey.cpython-310.pyc46030644editdlrm
msvc.cpython-310.pyc426070644editdlrm
namespaces.cpython-310.pyc35860644editdlrm
package_index.cpython-310.pyc347330644editdlrm
py34compat.cpython-310.pyc4500644editdlrm
sandbox.cpython-310.pyc157260644editdlrm
unicode_utils.cpython-310.pyc10800644editdlrm
version.cpython-310.pyc2920644editdlrm
wheel.cpython-310.pyc73180644editdlrm
windows_support.cpython-310.pyc9930644editdlrm
_deprecation_warning.cpython-310.pyc5180644editdlrm
_imp.cpython-310.pyc20440644editdlrm
__init__.cpython-310.pyc85610644editdlrm
Edit: /usr/lib/python3/dist-packages/setuptools/__pycache__/depends.cpython-310.pyc (5264B)
o _a{@sddlZddlZddlZddlZddlmZddlmZmZm Z m Z ddl mZgdZ GdddZ d d Zdd d ZdddZddZedS)N)version) find_module PY_COMPILED PY_FROZEN PY_SOURCE)_imp)Requirerget_module_constantextract_constantc@sLeZdZdZ  dddZddZdd Zdd d Zdd dZdddZ dS)r z7A prerequisite to building or installing a distributionNcCsH|dur |dur tj}|dur||}|durd}|jt|`dS)N __version__)rVersion__dict__updatelocalsself)rnamerequested_versionmodulehomepage attributeformatr4/usr/lib/python3/dist-packages/setuptools/depends.py__init__szRequire.__init__cCs |jdur d|j|jfS|jS)z0Return full package/distribution name, w/versionNz%s-%s)rr)rrrr full_name#s zRequire.full_namecCs0|jdup|jdupt|dko|||jkS)z%Is 'version' sufficiently up-to-date?Nunknown)rrstrr)rrrrr version_ok)szRequire.version_okrcCs~|jdur"zt|j|\}}}|r||WSty!YdSwt|j|j||}|dur=||ur=|jdur=||S|S)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)rrrclose ImportErrorr r)rpathsdefaultfpivrrr get_version.s   zRequire.get_versioncCs||duS)z/Return true if dependency is present on 'paths'N)r()rr"rrr is_presentIszRequire.is_presentcCs$||}|dur dS|t|S)z>Return true if dependency is present and up-to-date on 'paths'NF)r(rr)rr"rrrr is_currentMs zRequire.is_current)r NN)NrN) __name__ __module__ __qualname____doc__rrrr(r)r*rrrrr s   r cCs"tjdd}|s |St|S)Ncss dVdSr+rrrrremptyVszmaybe_close..empty) contextlibcontextmanagerclosing)r$r0rrr maybe_closeUs   r4c Cszt||\}}\}}}} Wn tyYdSwt|C|tkr.|dt|} n,|tkr9t ||} n!|t krFt ||d} nt ||| } t | |dWdSWdn1sdwYt| ||S)zFind '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!r4rreadmarshalloadrrget_frozen_objectrcompile get_modulegetattrr ) rsymbolr#r"r$pathsuffixmodekindinfocodeimportedrrrr `s&      r c Cs||jvrdSt|j|}d}d}d}|}t|D]$}|j} |j} | |kr.|j| }q| |kr>| |ks:| |kr>|S|}qdS)aExtract 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'. NZad)co_nameslistindexdisBytecodeopcodearg co_consts) rEr?r#name_idx STORE_NAME STORE_GLOBAL LOAD_CONSTconst byte_codeoprPrrrr }s  r cCs>tjds tjdkr dSd}|D] }t|=t|qdS)z Patch the globals to remove the objects not available on some platforms. XXX it'd be better to test assertions about bytecode instead. javacliN)r r )sysplatform startswithglobals__all__remove) incompatiblerrrr_update_globalss rb)r5N)r5)r[r9r1rMsetuptools.extern.packagingrrrrrrr r_r r4r r rbrrrrs  D $