/opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__
NameSizeModeActions
archive_util.cpython-38.pyc57200644editdlrm
build_meta.cpython-38.pyc89520644editdlrm
config.cpython-38.pyc198810644editdlrm
depends.cpython-38.pyc51980644editdlrm
dep_util.cpython-38.pyc8270644editdlrm
dist.cpython-38.pyc362120644editdlrm
errors.cpython-38.pyc8200644editdlrm
extension.cpython-38.pyc19100644editdlrm
glob.cpython-38.pyc36740644editdlrm
installer.cpython-38.pyc27550644editdlrm
launch.cpython-38.pyc8510644editdlrm
lib2to3_ex.cpython-38.pyc26670644editdlrm
monkey.cpython-38.pyc45890644editdlrm
msvc.cpython-38.pyc427330644editdlrm
namespaces.cpython-38.pyc35500644editdlrm
package_index.cpython-38.pyc325000644editdlrm
py34compat.cpython-38.pyc4540644editdlrm
sandbox.cpython-38.pyc154150644editdlrm
unicode_utils.cpython-38.pyc10900644editdlrm
version.cpython-38.pyc2960644editdlrm
wheel.cpython-38.pyc72020644editdlrm
windows_support.cpython-38.pyc9930644editdlrm
_deprecation_warning.cpython-38.pyc5200644editdlrm
_imp.cpython-38.pyc20590644editdlrm
__init__.cpython-38.pyc86240644editdlrm
Edit: /opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/depends.cpython-38.pyc (5198B)
U ab@sddlZddlZddlZddlZddlmZddlmZmZm Z m Z ddl mZdddd gZ Gd ddZ d d ZdddZddd ZddZedS)N) StrictVersion) find_module PY_COMPILED PY_FROZEN PY_SOURCE)_impRequirerget_module_constantextract_constantc@sHeZdZdZdddZddZdd Zdd d Zdd dZdddZ dS)r z7A prerequisite to building or installing a distributionNcCsF|dkr|dk rt}|dk r0||}|dkr0d}|jt|`dS)N __version__)r__dict__updatelocalsself)rnamerequested_versionmoduleZhomepage attributeformatr:/tmp/pip-install-7tp5dx2w/setuptools/setuptools/depends.py__init__szRequire.__init__cCs |jdk rd|j|jfS|jS)z0Return full package/distribution name, w/versionNz%s-%s)rr)rrrr full_name"s zRequire.full_namecCs*|jdkp(|jdkp(t|dko(||jkS)z%Is 'version' sufficiently up-to-date?Nunknown)rrstrr)rversionrrr version_ok(szRequire.version_okrcCs|jdkrFz$t|j|\}}}|r*||WStk rDYdSXt|j|j||}|dk r|||k r||jdk r|||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||dk S)z/Return true if dependency is present on 'paths'N)r')rr!rrr is_presentHszRequire.is_presentcCs ||}|dkrdS||S)z>Return true if dependency is present and up-to-date on 'paths'NF)r'r)rr!rrrr is_currentLs zRequire.is_current)r NN)Nr)N)N) __name__ __module__ __qualname____doc__rrrr'r(r)rrrrr s   cCs"tjdd}|s|St|S)Ncss dVdS)NrrrrremptyUszmaybe_close..empty) contextlibcontextmanagerclosing)r#r.rrr maybe_closeTs  r2c Cszt||\}}\}}}} Wntk r4YdSXt|z|tkr^|dt|} nV|tkrtt ||} n@|t krt ||d} n&t ||| } t | |dW5QRSW5QRXt| ||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 r2rreadmarshalloadrrget_frozen_objectrcompileZ get_modulegetattrr ) rsymbolr"r!r#pathsuffixmodekindinfocodeZimportedrrrr _s   "c Cs||jkrdSt|j|}d}d}d}|}t|D]H}|j} |j} | |kr\|j| }q8| |kr|| |kst| |kr||S|}q8dS)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) rBr<r"Zname_idx STORE_NAME STORE_GLOBAL LOAD_CONSTconstZ byte_codeoprLrrrr |s  cCs>tjdstjdkrdSd}|D]}t|=t|q"dS)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)Z incompatiblerrrr_update_globalss r[)r3N)r3)rUr7r/rIZdistutils.versionrrrrrrr rYr r2r r r[rrrrs"  D  $