HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-39.pyc
a

?�f��@s`ddlmZddlZddlZddlmZer<ddlmZmZdd�Z	dd�Z
d	d
�Zdd�ZdS)
�)�absolute_importN)�MYPY_CHECK_RUNNING)�Optional�TuplecCst�p
t�S)z9Returns glibc version string, or None if not using glibc.)�glibc_version_string_confstr�glibc_version_string_ctypes�rr�=/usr/lib/python3.9/site-packages/pip/_internal/utils/glibc.py�glibc_version_stringsr
c
CsDtjdkrdSzt�d���\}}Wntttfy>YdS0|S)z@Primary implementation of glibc_version_string using os.confstr.Zwin32N�CS_GNU_LIBC_VERSION)�sys�platform�os�confstr�split�AttributeError�OSError�
ValueError)�_�versionrrr	rs
rcCsrzddl}Wnty YdS0|�d�}z
|j}WntyJYdS0|j|_|�}t|t�sn|�	d�}|S)z=Fallback implementation of glibc_version_string using ctypes.rN�ascii)
�ctypes�ImportErrorZCDLL�gnu_get_libc_versionrZc_char_pZrestype�
isinstance�str�decode)rZprocess_namespacerZversion_strrrr	r's



rcCst�}|durdSd|fSdS)z�Try to determine the glibc version

    Returns a tuple of strings (lib, version) which default to empty strings
    in case the lookup fails.
    N)�rZglibc)r
)Z
glibc_versionrrr	�libc_verWsr)
Z
__future__rrrZpip._internal.utils.typingr�typingrrr
rrrrrrr	�<module>s0