HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-311.pyc
�

�mi���B�ddlmZddlZddlZd
d�Zd
d�Zd
d�Zdd	�ZdS)�)�annotationsN�return�
str | Nonec�:�t��p
t��S)z9Returns glibc version string, or None if not using glibc.)�glibc_version_string_confstr�glibc_version_string_ctypes���;D:\Python311\Lib\site-packages\pip/_internal/utils/glibc.py�glibc_version_stringrs��'�)�)�J�-H�-J�-J�Jr
c���tjdkrdS	tjd��}|�dS|���\}}n#t
ttf$rYdSwxYw|S)z@Primary implementation of glibc_version_string using os.confstr.�win32N�CS_GNU_LIBC_VERSION)�sys�platform�os�confstr�split�AttributeError�OSError�
ValueError)�gnu_libc_version�_�versions   rrrs����|�w����t���:�&;�<�<���	��4�%�+�+�-�-�
��7�7���G�Z�0�����t�t������Ns�A�A�A�Ac�8�	ddl}n#t$rYdSwxYw	|�d��}n#t$rYdSwxYw	|j}n#t
$rYdSwxYw|j|_|��}t|t��s|�
d��}|S)z=Fallback implementation of glibc_version_string using ctypes.rN�ascii)�ctypes�ImportError�CDLLr�gnu_get_libc_versionr�c_char_p�restype�
isinstance�str�decode)r�process_namespacer �version_strs    rrr s�����
�
�
�
�������t�t����� �"�K�K��-�-���������t�t������0�E���������t�t�����$*�?�� �+�+�-�-�K��k�3�'�'�2�!�(�(��1�1���s*��
��/�
=�=�A	�	
A�A�tuple[str, str]c�.�t��}|�dSd|fS)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)�r*�glibc)r)�
glibc_versions r�libc_verr-\s'��)�*�*�M��(��x���'�'r
)rr)rr()�
__future__rrrrrrr-r	r
r�<module>r/s���"�"�"�"�"�"�	�	�	�	�
�
�
�
�K�K�K�K�
����((�(�(�(�x
(�
(�
(�
(�
(�
(r