HEX
Server: LiteSpeed
System: Linux br-asc-web1845.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
User: u790421558 (790421558)
PHP: 8.2.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/packaging/__pycache__/_manylinux.cpython-311.pyc
�

]�Zg�%��h�UddlmZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
mZmZm
Z
ddlmZmZmZmZdZdZdZejd+d
���Zd,d�Zd,d�Zd-d�Zejd���Zded<Gd�de��Zd.d�Zd.d�Z d.d�Z!d/d �Z"ej#d0d!���Z$d1d$�Z%d%d&d'd(�Z&d2d*�Z'dS)3�)�annotationsN)�	Generator�Iterator�
NamedTuple�Sequence�)�EIClass�EIData�ELFFile�EMachinel~ii�path�str�return�%Generator[ELFFile | None, None, None]c#��K�	t|d��5}t|��V�ddd��dS#1swxYwYdS#tttf$rdV�YdSwxYw)N�rb)�openr�OSError�	TypeError�
ValueError)r
�fs  �G/opt/alt/python311/lib/python3.11/site-packages/packaging/_manylinux.py�
_parse_elfrs������
�$��
�
�	���!�*�*����	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	���Y�
�+�����
�
�
�
�
�
����s,�A�3�A�7�A�7�A�A�A�
executable�boolc�<�t|��5}|duon|jtjkoY|jt
jkoD|jtj	ko/|j
tztko|j
tztk	cddd��S#1swxYwYdS�N)r�capacityr	�C32�encodingr
�Lsb�machiner�Arm�flags�EF_ARM_ABIMASK�EF_ARM_ABI_VER5�EF_ARM_ABI_FLOAT_HARD�rrs  r�_is_linux_armhfr)s���
�J�	�	�
�1�
�T�M�
I��
�g�k�)�
I��
�f�j�(�
I��	�X�\�)�
I���.�(�O�;�	
I�
��/�/�3H�H�
	
�
�
�
�
�
�
�
�
�
�
�
�
����
�
�
�
�
�
s�A4B�B�Bc���t|��5}|duo>|jtjko)|jt
jko|jtj	k	cddd��S#1swxYwYdSr)
rrr	rr r
r!r"r�I386r(s  r�_is_linux_i686r,-s���	�J�	�	�
�1�
�T�M�
+��
�g�k�)�
+��
�f�j�(�
+��	�X�]�*�		
�
�
�
�
�
�
�
�
�
�
�
�
����
�
�
�
�
�
s�AA!�!A%�(A%�archs�
Sequence[str]c���d|vrt|��Sd|vrt|��Shd��t�fd�|D����S)N�armv7l�i686>�ppc64�s390x�x86_64�aarch64�ppc64le�riscv64�loongarch64c3� �K�|]}|�vV��	dSr�)�.0�arch�
allowed_archss  �r�	<genexpr>z'_have_compatible_abi.<locals>.<genexpr>Es(�����7�7��t�}�$�7�7�7�7�7�7�)r)r,�any)rr-r=s  @r�_have_compatible_abirA7si����5����z�*�*�*�
�����j�)�)�)����M��7�7�7�7��7�7�7�7�7�7r?c��dS)N�2r:r:r?r�<lambda>rDMs��B�r?zdict[int, int]�_LAST_GLIBC_MINORc�$�eZdZUded<ded<dS)�
_GLibCVersion�int�major�minorN)�__name__�
__module__�__qualname__�__annotations__r:r?rrGrGPs"��������J�J�J��J�J�J�J�Jr?rG�
str | Nonec��	tjd��}|�J�|���\}}n$#ttt
tf$rYdSwxYw|S)zJ
    Primary implementation of glibc_version_string using os.confstr.
    �CS_GNU_LIBC_VERSIONN)�os�confstr�rsplit�AssertionError�AttributeErrorrr)�version_string�_�versions   r�_glibc_version_string_confstrrZUsl���%'�Z�0E�%F�%F���)�)�)�#�*�*�,�,�
��7�7���N�G�Z�@�����t�t������Ns�/2�A�Ac�8�	ddl}n#t$rYdSwxYw	|�d��}n#t$rYdSwxYw	|j}n#t
$rYdSwxYw|j|_|��}t|t��s|�
d��}|S)zG
    Fallback implementation of glibc_version_string using ctypes.
    rN�ascii)�ctypes�ImportError�CDLLr�gnu_get_libc_versionrV�c_char_p�restype�
isinstancer�decode)r]�process_namespacer`�version_strs    r�_glibc_version_string_ctypesrghs�����
�
�
�
�������t�t����� �"�K�K��-�-���������t�t������0�E���������t�t�����$*�?�� �+�+�-�-�K��k�3�'�'�2�!�(�(��1�1���s*��
��/�
=�=�A	�	
A�Ac�:�t��p
t��S)z9Returns glibc version string, or None if not using glibc.)rZrgr:r?r�_glibc_version_stringri�s��(�*�*�L�.J�.L�.L�Lr?rf�tuple[int, int]c��tjd|��}|s!tjd|��td���dSt|�d����t|�d����fS)a3Parse glibc version.

    We use a regexp instead of str.split because we want to discard any
    random junk that might come after the minor version -- this might happen
    in patched/forked versions of glibc (e.g. Linaro's version of glibc
    uses version strings like "2.20-2014.11"). See gh-3588.
    z$(?P<major>[0-9]+)\.(?P<minor>[0-9]+)z;Expected glibc version with 2 components major.minor, got: �)�
stacklevel����rorIrJ)�re�match�warnings�warn�RuntimeWarningrH�group)rf�ms  r�_parse_glibc_versionrw�s���	��8�+�F�F�A����
�
#� �
#�
#���		
�	
�	
�	
��v��q�w�w�w��� � �#�a�g�g�g�&6�&6�"7�"7�7�7r?c�D�t��}|�dSt|��S)Nrn)rirw)rfs r�_get_glibc_versionry�s&��'�)�)�K����x���,�,�,r?r<rYc�<�t��}||krdS	ddl}n#t$rYdSwxYwt|d��r6|�|d|d|��}|�t|��SdS|t
dd��kr$t|d��rt|j��S|t
dd	��kr$t|d
��rt|j��S|t
dd��kr$t|d��rt|j	��SdS)
NFrT�manylinux_compatiblerrl��manylinux1_compatible��manylinux2010_compatible��manylinux2014_compatible)
ry�
_manylinuxr^�hasattrr{rrGr}rr�)r<rY�	sys_glibcr��results     r�_is_compatibler��sL��"�$�$�I��7����u�������������t�t������z�1�2�2���0�0����W�Q�Z��N�N������<�<���t��-��1�%�%�%�%��:�6�7�7�	:��
�8�9�9�9��-��2�&�&�&�&��:�9�:�:�	=��
�;�<�<�<��-��2�&�&�&�&��:�9�:�:�	=��
�;�<�<�<��4s��
+�+�
manylinux2014�
manylinux2010�
manylinux1))rlr�)rlr~)rlr|�
Iterator[str]c#�K�ttj|��sdStdd��}t	|��ddhzrtdd��}tt���}|g}t
|jdz
dd��D]2}t|}|�	t||�����3|D]�}|D]�}|j|jkr|j
}nd}t
|j
|d��D]i}t|j|��}	d	j|	�}
t||	��r	|
�d
|��V�|	tvr&t|	}t||	��r	|�d
|��V��j����dS)a�Generate manylinux tags compatible to the current platform.

    :param archs: Sequence of compatible architectures.
        The first one shall be the closest to the actual architecture and be the part of
        platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
        The ``linux_`` prefix is assumed as a prerequisite for the current platform to
        be manylinux-compatible.

    :returns: An iterator of compatible manylinux tags.
    Nrl�r4r1�rrozmanylinux_{}_{}rX)rA�sysrrG�setry�rangerIrE�appendrJ�formatr��_LEGACY_MANYLINUX_MAP)r-�too_old_glibc2�
current_glibc�glibc_max_list�glibc_major�glibc_minorr<�	glibc_max�	min_minor�
glibc_version�tag�
legacy_tags            r�
platform_tagsr��s����� ����6�6����"�1�b�)�)�N�
�5�z�z�X�v�&�&�-�&�q�!�,�,��!�#5�#7�#7�8�M�#�_�N��]�0�1�4�a��<�<�G�G��'��4�����m�K��E�E�F�F�F�F��5�5��'�	5�	5�I���.�"6�6�6�*�0�	�	��	�$�Y�_�i��D�D�	
5�	
5�� -�i�o�{� K� K�
�.�'�.�
�>��!�$�
�6�6�*� �/�/�4�/�/�)�)�)� �$9�9�9�!6�}�!E�J�%�d�M�:�:�5�!+�4�4�d�4�4�4�4�4��	
5�
	5�5�5r?)r
rrr)rrrr)rrr-r.rr)rrO)rfrrrj)rrj)r<rrYrGrr)r-r.rr�)(�
__future__r�collections�
contextlib�	functoolsrRrpr�rr�typingrrrr�_elffiler	r
rrr%r&r'�contextmanagerrr)r,rA�defaultdictrErNrGrZrgrirw�	lru_cacheryr�r�r�r:r?r�<module>r�s*��"�"�"�"�"�"�"�������������	�	�	�	�	�	�	�	�
�
�
�
�����<�<�<�<�<�<�<�<�<�<�<�<�8�8�8�8�8�8�8�8�8�8�8�8�����"��
��������
�
�
�
�
�
�
�
�8�8�8�8�,%<�K�$;�J�J�$G�$G��G�G�G�G������J����
����&)�)�)�)�XM�M�M�M�
8�8�8�8�(��-�-�-���-�����8�
��
���-5�-5�-5�-5�-5�-5r?