;ò 32]@c@s³dklZdkZdkZdkZdklZlZlZlZdk l Z l Z ddddgZ dfd„ƒYZ d „Zed „Zd ed „Zd d „ZdS((s generatorsN(s PKG_DIRECTORYs PY_COMPILEDs PY_SOURCEs PY_FROZEN(s StrictVersions LooseVersionsRequires find_modulesget_module_constantsextract_constantcBsYtZdZdeed„Zd„Zd„Zedd„Zed„Zed„Z RS( s7A prerequisite to building or installing a distributionscCsu|tjo |tj o t}n|tj o'||ƒ}|tjo d}qXn|iitƒƒ|`dS(Ns __version__( sformatsNonesrequested_versions StrictVersions attributesselfs__dict__supdateslocals(sselfsnamesrequested_versionsmoduleshomepages attributesformat((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys__init__ s    cCs3|itj od|i|ifSn|iSdS(s0Return full package/distribution name, w/versions%s-%sN(sselfsrequested_versionsNonesname(sself((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys full_namescCsD|itjp0|itjp t|ƒdjo ||ijSdS(s%Is 'version' sufficiently up-to-date?sunknownN(sselfs attributesNonesformatsstrsversionsrequested_version(sselfsversion((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys version_ok$ssunknowncCsÄ|itjoVy8t|i|ƒ\}}}|o|i ƒn|SWqft j o tSqfXnt |i|i||ƒ}|tj o||j o |itj o|i|ƒSn|SdS(s×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(sselfs attributesNones find_modulesmodulespathssfspsisclosesdefaults ImportErrorsget_module_constantsvsformat(sselfspathssdefaultsisfspsv((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys get_version*s  *cCs|i|ƒtj SdS(s/Return true if dependency is present on 'paths'N(sselfs get_versionspathssNone(sselfspaths((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys is_presentFscCs5|i|ƒ}|tjotSn|i|ƒSdS(s>Return true if dependency is present and up-to-date on 'paths'N(sselfs get_versionspathssversionsNonesFalses version_ok(sselfspathssversion((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys is_currentKs  ( s__name__s __module__s__doc__sNones__init__s full_names version_oks get_versions is_presents is_current(((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pysRequire s    c csådkl}dkl}l}|d|iƒ}t|iƒ} d}d}x‘|| joƒ||}||joN||d||dd|}|d7}||jo|d }qPqÒnt }|d7}||fVqPWd S( s>Yield '(op,arg)' pair for each operation in code object 'code'(sarray(s HAVE_ARGUMENTs EXTENDED_ARGsbiiiiilN(sarraysdiss HAVE_ARGUMENTs EXTENDED_ARGscodesco_codesbytesslenseofsptrs extended_argsopsargsNone( scodes EXTENDED_ARGs HAVE_ARGUMENTsbytess extended_argsargsarraysopsptrseof((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys _iter_codeSs&    "     c Cs¨|idƒ}xŽ|o†|idƒ}ti||ƒ\}} \}}}}|tjo|pdg}| g}q|otd||fƒ‚qqW|SdS(s7Just like 'imp.find_module()', but with package supports.is__init__sCan't find %r in %sN(smodulessplitspartsspopspartsimps find_modulespathssfspathssuffixsmodeskindsinfos PKG_DIRECTORYs ImportError( smodulespathssinfoskindssuffixsfspartsspartsmodespath((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys find_module|s(  iÿÿÿÿc Cs0y%t||ƒ\}}\}} }Wntj o t SnXzÄ|t jo |i dƒt i |ƒ}n”|tjoti|ƒ}nt|tjot|i ƒ|dƒ}nK|tijo#ti||||| |fƒntti||t ƒSWd|o|iƒnXt|||ƒSdS(sü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'.isexecN(s find_modulesmodulespathssfspathssuffixsmodeskinds ImportErrorsNones PY_COMPILEDsreadsmarshalsloadscodes PY_FROZENsimpsget_frozen_objects PY_SOURCEscompilessyssmoduless load_modulesgetattrssymbolsclosesextract_constantsdefault( smodulessymbolsdefaultspathsscodessuffixspathskindsfsmode((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pysget_module_constant¥s(%     #c Cs¼||ijotSnt|iƒi|ƒ}d}d}d}|}xmt |ƒD]_\} }| |jo|i|}qU||jo| |jp | |jo|SqU|}qUWdS(sExtract 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'. iZiaidN(ssymbolscodesco_namessNoneslistsindexsname_idxs STORE_NAMEs STORE_GLOBALs LOAD_CONSTsdefaultsconsts _iter_codesopsargs co_consts( scodessymbolsdefaultsconstsname_idxs STORE_GLOBALs LOAD_CONSTs STORE_NAMEsargsop((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pysextract_constantÎs   '(s __future__s generatorsssyssimpsmarshals PKG_DIRECTORYs PY_COMPILEDs PY_SOURCEs PY_FROZENsdistutils.versions StrictVersions LooseVersions__all__sRequires _iter_codesNones find_modulesget_module_constantsextract_constant(s StrictVersions__all__s PY_COMPILEDs find_modulesget_module_constantsRequires LooseVersions _iter_codessyssimps generatorss PKG_DIRECTORYs PY_SOURCEs PY_FROZENsmarshalsextract_constant((sR/mnt/gmirror/ports/devel/py-protocols/work/PyProtocols-0.9.3/setuptools/depends.pys?s I ) ))