Your IP : 216.73.216.160
�
,�Re{���ddlZddlZddlZddlZddlmZddlmZmZm Z m
Z
ddlmZgd�ZGd�d��Z
d �Zdd�Zdd�Zd
�Ze��dS)�N)�version�)�find_module�PY_COMPILED� PY_FROZEN� PY_SOURCE)�_imp)�Requirer�get_module_constant�extract_constantc�B�eZdZdZ dd�Zd�Zd�Zdd�Zd
d �Zd
d
�Z dS)r
z7A prerequisite to building or installing a distribution�Nc��|�|�tj}|�||��}|�d}|j�t ����|`dS)N�__version__)r�Version�__dict__�update�locals�self)r�name�requested_version�module�homepage� attribute�formats ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/depends.py�__init__zRequire.__init__s[���>�/�;��_�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)rrs r�
version_okzRequire.version_ok)sN���~��%�Y����)<�Y���L�L�I�%�X�$�+�+�g�*>�*>�$�BX�*X� Yrr#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_presentIs������&�&�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)rs r�
is_currentzRequire.is_currentMs7���"�"�5�)�)���?��5����s�7�|�|�,�,�,r)rNN)Nr#�N)
�__name__�
__module__�__qualname__�__doc__rr!r%r/r1r3�rrr
r
s�������A�A�=?�#'�
�
�
�
����Y�Y�Y�
����63�3�3�3�-�-�-�-�-�-rr
c�l�tjd���}|s
|��Stj|��S)Nc3�K�dV�dSr4r9r9rr�emptyzmaybe_close.<locals>.emptyVs����
�����r)�
contextlib�contextmanager�closing)r+r<s r�maybe_closer@UsE���������
���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 rrr`s~���/:�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���|��}d}d}d}|}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�Z�a�d)�co_names�list�index�dis�Bytecode�opcode�arg� co_consts)rRrLr*�name_idx�
STORE_NAME�STORE_GLOBAL�
LOAD_CONST�const� byte_code�opr^s rrr}s����T�]�"�"��t��D�M�"�"�(�(��0�0�H��J��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)rr)�sys�platform�
startswith�globals�__all__�remove)�incompatiblers r�_update_globalsrq�sk���<�"�"�6�*�*��s�|�u�/D�/D���<�L������I�I�d�O����t������r)rAN)rA)rjrFr=r[�setuptools.extern.packagingrr rrrrrrnr
r@rrrqr9rr�<module>rss��
�
�
�
���������
�
�
�
�/�/�/�/�/�/�@�@�@�@�@�@�@�@�@�@�@�@�����������
A-�A-�A-�A-�A-�A-�A-�A-�H!�!�!�3�3�3�3�:!�!�!�!�H���������r
?>