Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/setuptools/__pycache__/depends.cpython-37.pyc

71 lines
5.0 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>T<EFBFBD>]<5D><00>@s<>ddlZddlZddlZddlmZddlmZddlmZm Z m
Z
m Z ddl mZddd d
gZ Gd d<07>d<07>Zd d <0A>Zddd <09>Zddd
<EFBFBD>Zdd<12>Ze<12>dS)<15>N)<01> StrictVersion<6F>)<01>Bytecode)<04> find_module<6C> PY_COMPILED<45> PY_FROZEN<45> PY_SOURCE)<01>
py27compat<EFBFBD>Requirer<00>get_module_constant<6E>extract_constantc@sHeZdZdZddd<05>Zdd<07>Zdd <09>Zdd d <0C>Zdd d<0E>Zddd<10>Z dS)r
z7A prerequisite to building or installing a distribution<6F>NcCsF|dkr|dk rt}|dk r0||<02>}|dkr0d}|j<01>t<03><00>|`dS)N<> __version__)r<00>__dict__<5F>update<74>locals<6C>self)r<00>name<6D>requested_version<6F>moduleZhomepage<67> attribute<74>format<61>r<00>:/tmp/pip-install-a92mrpso/setuptools/setuptools/depends.py<70>__init__szRequire.__init__cCs |jdk rd|j|jfS|jS)z0Return full package/distribution name, w/versionNz%s-%s)rr)rrrr<00> full_name#s
zRequire.full_namecCs*|jdkp(|jdkp(t|<01>dko(||jkS)z%Is 'version' sufficiently up-to-date?N<>unknown)rr<00>strr)r<00>versionrrr<00>
version_ok)szRequire.version_okrcCs||jdkrBy"t|j|<01>\}}}|r*|<03><03>|Stk
r@dSXt|j|j||<01>}|dk rx||k rx|jdk rx|<00>|<06>S|S)a<>Get 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<00>close<73> ImportErrorr r)r<00>paths<68>default<6C>f<>p<>i<>vrrr<00> get_version.s

zRequire.get_versioncCs|<00>|<01>dk S)z/Return true if dependency is present on 'paths'N)r()rr"rrr<00>
is_presentIszRequire.is_presentcCs |<00>|<01>}|dkrdS|<00>|<02>S)z>Return true if dependency is present and up-to-date on 'paths'NF)r(r)rr"rrrr<00>
is_currentMs
zRequire.is_current)r NN)Nr)N)N)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rrrr(r)r*rrrrr
s


cCs"tjdd<02><00>}|s|<01>St<00>|<00>S)Ncss
dVdS)Nrrrrr<00>emptyVszmaybe_close.<locals>.empty)<03>
contextlib<EFBFBD>contextmanager<65>closing)r$r/rrr<00> maybe_closeUsr3<00><><EFBFBD><EFBFBD><EFBFBD>c Cs<>yt||<03>\}}\}}}} Wntk
r2dSXt|<04><01>n|tkr\|<04>d<02>t<05>|<04>}
nJ|tkrrt<08> ||<03>}
n4|t
kr<>t |<04><04>|d<03>}
nt<08> ||| <09>} t | |d<01>SWdQRXt|
||<02>S)z<>Find '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'.N<><00>exec)rr!r3r<00>read<61>marshal<61>loadrr <00>get_frozen_objectr<00>compileZ
get_module<EFBFBD>getattrr ) r<00>symbolr#r"r$<00>path<74>suffix<69>mode<64>kind<6E>info<66>codeZimportedrrrr `s

 c Cs<>||jkrdSt|j<00><01>|<01>}d}d}d}|}xPt|<00>D]D}|j} |j}
| |kr\|j|
}q8|
|krx| |kst| |krx|S|}q8WdS)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'.
N<>Z<00>a<00>d)<07>co_names<65>list<73>indexr<00>opcode<64>arg<72> co_consts) rCr=r#Zname_idx<64>
STORE_NAME<EFBFBD> STORE_GLOBAL<41>
LOAD_CONST<EFBFBD>constZ byte_code<64>oprKrrrr }s
 cCsBtj<01>d<01>stjdkrdSd}x|D]}t<03>|=t<04>|<01>q$WdS)z<>
Patch the globals to remove the objects not available on some platforms.
XXX it'd be better to test assertions about bytecode instead.
<20>java<76>cliN)r r )<06>sys<79>platform<72>
startswith<EFBFBD>globals<6C>__all__<5F>remove)Z incompatiblerrrr<00>_update_globals<6C>s 
rZ)r4N)r4)rTr8r0Zdistutils.versionrZ
py33compatrr rrrrr rXr
r3r r rZrrrr<00><module>s    D

$