Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
B

½X¸Q@ã@s˜ddlZddlZddlZddlZddlmZddlmZmZm	Z	m
Z
ddlmZdddd	gZGd
d„dƒZ
dd„Zddd„Zddd	„Zdd„ZeƒdS)éN)Úversioné)Úfind_moduleÚPY_COMPILEDÚ	PY_FROZENÚ	PY_SOURCE)Ú_impÚRequirerÚget_module_constantÚextract_constantc@sHeZdZdZddd„Zdd„Zdd	„Zddd„Zdd
d„Zddd„Z	dS)r	z7A prerequisite to building or installing a distributionÚNcCsH|dkr|dk	rtj}|dk	r2||ƒ}|dkr2d}|j tƒ¡|`dS)NÚ__version__)rÚVersionÚ__dict__ÚupdateÚlocalsÚself)rÚnameÚrequested_versionÚmoduleZhomepageÚ	attributeÚformat©rú‘/build/wlanpi-profiler-7At3M6/wlanpi-profiler-1.0.10/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/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_namecCs0|jdkp.|jdkp.t|ƒdko.| |¡|jkS)z%Is 'version' sufficiently up-to-date?NÚunknown)rrÚstrr)rrrrrÚ
version_ok)szRequire.version_okrcCs||jdkrBy"t|j|ƒ\}}}|r*| ¡|Stk
r@dSXt|j|j||ƒ}|dk	rx||k	rx|jdk	rx| |¡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ÚcloseÚImportErrorr
r)rÚpathsÚdefaultÚfÚpÚiÚvrrrÚget_version.s

zRequire.get_versioncCs| |¡dk	S)z/Return true if dependency is present on 'paths'N)r')rr!rrrÚ
is_presentIszRequire.is_presentcCs$| |¡}|dkrdS| 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)Nr)N)N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__rrrr'r(r)rrrrr	s



cCs"tjdd„ƒ}|s|ƒSt |¡S)Ncss
dVdS)NrrrrrÚemptyVszmaybe_close.<locals>.empty)Ú
contextlibÚcontextmanagerÚclosing)r#r.rrrÚmaybe_closeUsr2éÿÿÿÿc	Cs¼yt||ƒ\}}\}}}}	Wntk
r2dSXt|ƒn|tkr\| d¡t |¡}
nJ|tkrrt 	||¡}
n4|t
krŒt| ¡|dƒ}
nt |||	¡}t
||dƒSWdQRXt|
||ƒ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éÚexec)rr r2rÚreadÚmarshalÚloadrrÚget_frozen_objectrÚcompileZ
get_moduleÚgetattrr)rÚsymbolr"r!r#ÚpathÚsuffixÚmodeÚkindÚinfoÚcodeZimportedrrrr
`s

cCs†||jkrdSt|jƒ |¡}d}d}d}|}xRt |¡D]D}|j}	|j}
|	|kr^|j|
}q:|
|krz|	|ksv|	|krz|S|}q:WdS)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éaéd)Úco_namesÚlistÚindexÚdisÚBytecodeÚopcodeÚargÚ	co_consts)rBr<r"Zname_idxÚ
STORE_NAMEÚSTORE_GLOBALÚ
LOAD_CONSTÚconstZ	byte_codeÚoprLrrrr}s
cCsBtj d¡stjdkrdSd}x|D]}tƒ|=t |¡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.
    ÚjavaÚcliN)rr
)ÚsysÚplatformÚ
startswithÚglobalsÚ__all__Úremove)ZincompatiblerrrrÚ_update_globals¡s
r[)r3N)r3)rUr7r/rIZsetuptools.extern.packagingrrrrrrrrYr	r2r
rr[rrrrÚ<module>sD

$