Hacked By AnonymousFox

Current Path : /opt/alt/python33/lib/python3.3/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/setuptools/__pycache__/depends.cpython-33.pyc

�
�ReMc@sddlmZddlZddlZddlZddlmZmZmZmZddl	m
Z
mZddddgZGd	d�d�Z
d
d�Zddd�Zdddd�Zddd�Zejjd�s�ejdkr[[ejd�ejd�ndS(i(u
generatorsN(u
PKG_DIRECTORYuPY_COMPILEDu	PY_SOURCEu	PY_FROZEN(u
StrictVersionuLooseVersionuRequireufind_moduleuget_module_constantuextract_constantcBsw|EeZdZdZddddd�Zdd�Zdd�Zdd	d
d�Zddd
�Z	ddd�Z
dS(uRequireu7A prerequisite to building or installing a distributionucCsn|dkr!|dk	r!t}n|dk	rQ||�}|dkrQd}qQn|jjt��|`dS(Nu__version__(uNoneu
StrictVersionu__dict__uupdateulocalsuself(uselfunameurequested_versionumoduleuhomepageu	attributeuformat((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyu__init__
s	uRequire.__init__cCs*|jdk	r#d|j|jfS|jS(u0Return full package/distribution name, w/versionu%s-%sN(urequested_versionuNoneuname(uself((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyu	full_namesuRequire.full_namecCs=|jdkp<|jdkp<t|�dko<||jkS(u%Is 'version' sufficiently up-to-date?uunknownN(u	attributeuNoneuformatustrurequested_version(uselfuversion((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyu
version_ok$suRequire.version_okuunknownc
Cs�|jdkray6t|j|�\}}}|r@|j�n|SWqatk
r]dSYqaXnt|j|j||�}|dk	r�||k	r�|jdk	r�|j|�S|S(u�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(u	attributeuNoneufind_moduleumoduleucloseuImportErroruget_module_constantuformat(uselfupathsudefaultufupuiuv((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyuget_version*s

'
uRequire.get_versioncCs|j|�dk	S(u/Return true if dependency is present on 'paths'N(uget_versionuNone(uselfupaths((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyu
is_presentFsuRequire.is_presentcCs,|j|�}|dkrdS|j|�S(u>Return true if dependency is present and up-to-date on 'paths'NF(uget_versionuNoneuFalseu
version_ok(uselfupathsuversion((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyu
is_currentKsuRequire.is_currentN(u__name__u
__module__u__qualname__u__doc__uNoneu__init__u	full_nameu
version_okuget_versionu
is_presentu
is_current(u
__locals__((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyuRequire
sc
cs�ddlm}ddlm}m}|d|j�}t|j�}d}d}x�||kr�||}||kr�||d||dd|}	|d7}||kr�|	td	�}qVq�nd
}	|d7}||	fVqVWd
S(u>Yield '(op,arg)' pair for each operation in code object 'code'i(uarray(u
HAVE_ARGUMENTuEXTENDED_ARGubiiiiiN(uarrayudisu
HAVE_ARGUMENTuEXTENDED_ARGuco_codeulenu	long_typeuNone(
ucodeuarrayu
HAVE_ARGUMENTuEXTENDED_ARGubytesueofuptruextended_arguopuarg((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyu
_iter_codeSs"
"
	
u
_iter_codec
Cs�|jd�}x�|r�|jd�}tj||�\}}\}}}}	|tkrv|pgdg}|g}q|rtd||f��qqW|	S(u7Just like 'imp.find_module()', but with package supportu.iu__init__uCan't find %r in %s(usplitupopuimpufind_moduleu
PKG_DIRECTORYuImportError(
umoduleupathsupartsupartufupathusuffixumodeukinduinfo((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyufind_module|s	(ic
Cs!y%t||�\}}\}}}Wntk
r=dSYnXz�|tkrl|jd�tj|�}	n�|tkr�tj	|�}	no|t
kr�t|j�|d�}	nH|tj
kr�tj||||||f�nttj
||d�SWd|r|j�nXt|	||�S(u�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'.iuexecN(ufind_moduleuImportErroruNoneuPY_COMPILEDureadumarshaluloadu	PY_FROZENuimpuget_frozen_objectu	PY_SOURCEucompileusysumodulesuload_moduleugetattrucloseuextract_constant(
umoduleusymboludefaultupathsufupathusuffixumodeukinducode((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyuget_module_constant�s$%
	
"c
Cs�||jkrdSt|j�j|�}d}d}d}|}xdt|�D]V\}}	||krx|j|	}qP|	|kr�||ks�||kr�|S|}qPWdS(uExtract 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(uco_namesuNoneulistuindexu
_iter_codeu	co_consts(
ucodeusymboludefaultuname_idxu
STORE_NAMEuSTORE_GLOBALu
LOAD_CONSTuconstuopuarg((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyuextract_constant�s
$ujavauclii����i����(u
__future__u
generatorsusysuimpumarshalu
PKG_DIRECTORYuPY_COMPILEDu	PY_SOURCEu	PY_FROZENudistutils.versionu
StrictVersionuLooseVersionu__all__uRequireu
_iter_codeuNoneufind_moduleuget_module_constantuextract_constantuplatformu
startswithuremove(((u+/tmp/pip-k8wh6o-build/setuptools/depends.pyu<module>s$"I)))"!


Hacked By AnonymousFox1.0, Coded By AnonymousFox