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__/_musllinux.cpython-311.pyc
�

]�Zg�
�
��dZddlmZddlZddlZddlZddlZddlmZm	Z	m
Z
ddlmZGd�de	��Z
d!d
�Zejd"d���Zd#d�Zedkr�ddlZej��Ze�d��s
Jd���ede��edeej����edd���eejdde�dd��d����D]Zeed ����dSdS)$z�PEP 656 support.

This module implements logic to detect if the currently running Python is
linked against musl, and what musl version is used.
�)�annotationsN)�Iterator�
NamedTuple�Sequence�)�ELFFilec�$�eZdZUded<ded<dS)�_MuslVersion�int�major�minorN)�__name__�
__module__�__qualname__�__annotations__���G/opt/alt/python311/lib/python3.11/site-packages/packaging/_musllinux.pyr
r
s"��������J�J�J��J�J�J�J�Jrr
�output�str�return�_MuslVersion | Nonec��d�d�|���D��D��}t|��dks|ddd�dkrdStjd|d��}|sdSt	t|�d����t|�d�����	��S)
Nc��g|]}|�|��Srr��.0�ns  r�
<listcomp>z'_parse_musl_version.<locals>.<listcomp>s��F�F�F�1�A�F�Q�F�F�Frc3�>K�|]}|���V��dS)N)�striprs  r�	<genexpr>z&_parse_musl_version.<locals>.<genexpr>s*����@�@�q������@�@�@�@�@�@r�r��muslzVersion (\d+)\.(\d+)r)rr
)�
splitlines�len�re�matchr
r�group)r�lines�ms   r�_parse_musl_versionr,s���F�F�@�@�F�,=�,=�,?�,?�@�@�@�F�F�F�E�
�5�z�z�A�~�~��q��"�1�"���/�/��t�
��(�%��(�3�3�A����t��c�!�'�'�!�*�*�o�o�S�������_�_�E�E�E�Er�
executablec�6�	t|d��5}t|��j}ddd��n#1swxYwYn#ttt
f$rYdSwxYw|�d|vrdSt
j|gtjd���}t|j
��S)a`Detect currently-running musl runtime version.

    This is done by checking the specified executable's dynamic linking
    information, and invoking the loader to parse its output for a version
    string. If the loader is musl, the output would be something like::

        musl libc (x86_64)
        Version 1.2.2
        Dynamic Program Loader
    �rbNr$T)�stderr�text)�openr�interpreter�OSError�	TypeError�
ValueError�
subprocess�run�PIPEr,r0)r-�f�ld�procs    r�_get_musl_versionr=!s����
�*�d�
#�
#�	(�q�����'�B�	(�	(�	(�	(�	(�	(�	(�	(�	(�	(�	(����	(�	(�	(�	(����Y�
�+�����t�t�����	�z�V�2�%�%��t��>�2�$�z��T�B�B�B�D��t�{�+�+�+s'�?�3�?�7�?�7�?�A�A�archs�
Sequence[str]�
Iterator[str]c#�K�ttj��}|�dS|D]-}t|jdd��D]}d|j�d|�d|��V���.dS)a�Generate musllinux 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 musllinux-compatible.

    :returns: An iterator of compatible musllinux tags.
    N����
musllinux_�_)r=�sysr-�ranger
r)r>�sys_musl�archr
s    r�
platform_tagsrI8s�����!���0�0�H������?�?���8�>�2�r�2�2�	?�	?�E�>�x�~�>�>��>�>��>�>�>�>�>�>�	?�?�?r�__main__zlinux-z	not linuxzplat:zmusl:ztags:� )�endz[.-]rD�-rBz
      )rrrr)r-rrr)r>r?rr@)�__doc__�
__future__r�	functoolsr'r7rE�typingrrr�_elffilerr
r,�	lru_cacher=rIr�	sysconfig�get_platform�plat�
startswith�printr-�sub�split�trrr�<module>r\s�����#�"�"�"�"�"�����	�	�	�	�����
�
�
�
�1�1�1�1�1�1�1�1�1�1������������:����
F�F�F�F���,�,�,���,�,?�?�?�?�&�z�������!�9�!�#�#�D��?�?�8�$�$�1�1�k�1�1�$�	�E�'�4����	�E�'�$�$�S�^�4�4�5�5�5�	�E�'�s�����
�]�6�2�6�'�3��
�
�3��0B�0B�2�0F�G�G�
H�
H�!�!��
��a�Z� � � � � ���!�!r