ok

Mini Shell

Direktori : /opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/__pycache__/depends.cpython-311.pyc

�

>�Dg����ddlZddlZddlZddlZddlmZddlmZmZmZm	Z	ddl
mZgd�ZGd�d��Z
d	�Zdd�Zdd�Zd
�Ze��dS)�N�)�_imp)�find_module�PY_COMPILED�	PY_FROZEN�	PY_SOURCE)�Version)�Requirer�get_module_constant�extract_constantc�@�eZdZdZ	dd�Zd�Zd�Zdd�Zd
d	�Zd
d
�Z	dS)r
z7A prerequisite to building or installing a distribution�Nc��|�	|�t}|�||��}|�d}|j�t����|`dS)N�__version__)r	�__dict__�update�locals�self)r�name�requested_version�module�homepage�	attribute�formats       �I/opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/depends.py�__init__zRequire.__init__sY���>�/�;��F��� &��'8� 9� 9��� �)�	��
���V�X�X�&�&�&��I�I�I�c�@�|j�|j�d|j��S|jS)z0Return full package/distribution name, w/versionN�-)rr)rs r�	full_namezRequire.full_name s*���!�-�"�i�i�i��)?�)?�@�@��y�rc��|jdup9|jdup0t|��dko|�|��|jkS)z%Is 'version' sufficiently up-to-date?N�unknown)rr�strr)r�versions  r�
version_okzRequire.version_ok&sQ��
�N�d�"�
?��{�d�"�
?��7�|�|�y�(�?����G�$�$��(>�>�		
rr"c��|j�C	t|j|��\}}}|r|���|S#t$rYdSwxYwt|j|j||��}|� ||ur|j�|�|��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�ImportErrorrr)r�paths�default�f�p�i�vs       r�get_versionzRequire.get_version/s����>�!�
�%�d�k�5�9�9���1�a����G�G�I�I�I�����
�
�
��t�t�
����
 ���T�^�W�e�L�L���=�Q�g�-�-�$�+�2I��;�;�q�>�>�!��s�0:�
A�Ac�0�|�|��duS)z/Return true if dependency is present on 'paths'N)r/)rr)s  r�
is_presentzRequire.is_presentJs������&�&�d�2�2rc�x�|�|��}|�dS|�t|����S)z>Return true if dependency is present and up-to-date on 'paths'NF)r/r%r#)rr)r$s   r�
is_currentzRequire.is_currentNs7���"�"�5�)�)���?��5����s�7�|�|�,�,�,r)rNN)Nr"�N)
�__name__�
__module__�__qualname__�__doc__rr r%r/r1r3�rrr
r
s�������A�A�TX��������
�
�
�����63�3�3�3�-�-�-�-�-�-rr
c�l�tjd���}|s
|��Stj|��S)Nc3�K�dV�dSr4r9r9rr�emptyzmaybe_close.<locals>.emptyWs����
�����r)�
contextlib�contextmanager�closing)r+r<s  r�maybe_closer@VsE���������
���u�w�w����a� � � r���c�<�	t||��x\}}\}}}}	n#t$rYdSwxYwt|��5|tkr*|�d��tj|��}
n�|tkrtj	||��}
nb|tkr$t|���|d��}
n3tj|||	��}t||d��cddd��Sddd��n#1swxYwYt|
||��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(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�I�%��4�%�&�$����������t�t�����
�Q���3�3��;���
�F�F�1�I�I�I��<��?�?�D�D�
�Y�
�
��)�&�%�8�8�D�D�
�Y�
�
��1�6�6�8�8�T�6�2�2�D�D���v�u�d�;�;�H��8�V�T�2�2�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3����3�3�3�3��D�&�'�2�2�2s��
+�+�B,D�D�	Dc�|�||jvrdSt|j���|��}tjd}tjd}tjd}|}tj|��D]<}|j}	|j}
|	|kr|j|
}�$|
|kr|	|ks|	|kr|cS|}�=dS)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�
STORE_NAME�STORE_GLOBAL�
LOAD_CONST)	�co_names�list�index�dis�opmap�Bytecode�opcode�arg�	co_consts)rRrLr*�name_idxrUrVrW�const�	byte_code�opr_s           rrrs����T�]�"�"��t��D�M�"�"�(�(��0�0�H���<�(�J��9�^�,�L���<�(�J��E��\�$�'�'�	�	�	�
�
���m��
�����N�3�'�E�E�
�H�_�_�"�
�"2�"2�b�L�6H�6H��L�L�L��E�E�	�	rc���tj�d��stjdkrdSd}|D]+}t��|=t�|���,dS)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_globalsro�sk���<�"�"�6�*�*��s�|�u�/D�/D���<�L������I�I�d�O����t������r)rAN)rA)rhrFr=r[rrrrrr�extern.packaging.versionr	rlr
r@rrror9rr�<module>rqs��
�
�
�
���������
�
�
�
�������@�@�@�@�@�@�@�@�@�@�@�@�-�-�-�-�-�-�P�
O�
O��D-�D-�D-�D-�D-�D-�D-�D-�N	!�	!�	!�3�3�3�3�:!�!�!�!�H���������r

Zerion Mini Shell 1.0