HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/pip/utils/__pycache__/glibc.cpython-36.pyc
3

�Pf{�@sPddlmZddlZddlZddlZddlZdd�Zdd�Zdd�Zd	d
�Z	dS)�)�absolute_importNcCsPtjd�}y
|j}Wntk
r(dSXtj|_|�}t|t�sL|jd�}|S)z9Returns glibc version string, or None if not using glibc.N�ascii)	�ctypesZCDLL�gnu_get_libc_version�AttributeErrorZc_char_pZrestype�
isinstance�str�decode)Zprocess_namespacer�version_str�r�/usr/lib/python3.6/glibc.py�glibc_version_string	s



r
cCsHtjd|�}|s$tjd|t�dSt|jd��|koFt|jd��|kS)Nz$(?P<major>[0-9]+)\.(?P<minor>[0-9]+)z=Expected glibc version with 2 components major.minor, got: %sF�major�minor)�re�match�warnings�warn�RuntimeWarning�int�group)r
�required_major�
minimum_minor�mrrr�check_glibc_version#s
rcCst�}|dkrdSt|||�S)NF)r
r)rrr
rrr�have_compatible_glibc3srcCs"t�}|dkrtj�Sd|fSdS)NZglibc)r
�platform�libc_ver)Z
glibc_versionrrrrKsr)
Z
__future__rrrrrr
rrrrrrr�<module>s