AlkantarClanX12

Your IP : 3.143.23.38


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

�

�܋f�����ddlZddlZddlZddlZddlmZddlmZmZmZm	Z	ddl
mZddgZGd�d��Z
d	�Zej�d
��sejdkrdd
�Zdd�Zeddgz
ZdSdSdS)�N�)�_imp)�find_module�PY_COMPILED�	PY_FROZEN�	PY_SOURCE)�Version�Requirerc�@�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/cloudlinux/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�D	t|j|��\}}}n#t$rYdSwxYw|r|���|St|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�ImportError�close�get_module_constantr)r�paths�default�f�p�i�vs       r�get_versionzRequire.get_version/s����>�!�
�%�d�k�5�9�9���1�a�a���
�
�
��t�t�
�����
����	�	�	��N����T�^�W�e�L�L���=�Q�g�-�-�$�+�2I��;�;�q�>�>�!��s�#�
1�1c�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)rNN)Nr �N)
�__name__�
__module__�__qualname__�__doc__rrr#r.r0r2�rrr
r
s�������A�A�TX��������
�
�
�����63�3�3�3�-�-�-�-�-�-rc�l�tjd���}|s
|��Stj|��S)Nc3�K�dV�dSr3r8r8rr�emptyzmaybe_close.<locals>.emptyWs����
�����r)�
contextlib�contextmanager�closing)r*r;s  r�maybe_closer?VsE���������
���u�w�w����a� � � r�java�cli���c�<�	t||��x\}}\}}}}	n#t$rYdSwxYwt|��5|tkr*|�d��tj|��}
n�|tkrtj	||��}
nb|tkr$t|���|d��}
n3tj|||	��}t||d��cddd��Sddd��n#1swxYwYt|
||��S)aFind '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�getattr�extract_constant)r�symbolr)r(r*�path�suffix�mode�kind�info�code�importeds            rr'r'fs~��	�3>�v�u�3M�3M�M�)�A�t�)�f�d�D�D�D���	�	�	��4�4�	������^�^�	7�	7��{�"�"����q�	�	�	��|�A�������"�"��-�f�e�<�<�����"�"��q�v�v�x�x��v�6�6��� �?�6�5�$�?�?���x���6�6�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7�	7����	7�	7�	7�	7� ��f�g�6�6�6s��
+�+�B,D�D�	Dc�|�||jvrdSt|j���|��}tjd}tjd}tjd}|}tj|��D]<}|j}	|j}
|	|kr|j|
}�$|
|kr|	|ks|	|kr|cS|}�=dS)a/Extract 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)rTrNr)�name_idxrWrXrY�const�	byte_code�opras           rrMrM�s������&�&��4���
�&�&�,�,�V�4�4���Y�|�,�
��y��0���Y�|�,�
�����d�+�+�		 �		 �I��!�B��-�C��Z�����s�+�������b�J�&6�&6�"��:L�:L���������trr'rM)rBN)rB)�sysrGr<r]rrrrrr�extern.packaging.versionr	�__all__r
r?�platform�
startswithr'rMr8rr�<module>rls<��
�
�
�
���������
�
�
�
�������@�@�@�@�@�@�@�@�@�@�@�@�-�-�-�-�-�-��m�
$��D-�D-�D-�D-�D-�D-�D-�D-�N	!�	!�	!��|���v�&�&�C;�3�<�5�+@�+@�7�7�7�7�8#�#�#�#�J�%�'9�:�:�G�G�G�GC;�C;�+@�+@r