Your IP : 3.145.12.233


Current Path : /opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/glibc.cpython-36.pyc

3

K�ReJ�@sHddlmZddlZddlZddlZdd�Zdd�Zdd�Zd	d
�ZdS)�)�absolute_importNcCsPtjd�}y
|j}Wntk
r(dSXtj|_|�}t|t�sL|jd�}|S)z9Returns glibc version string, or None if not using glibc.N�ascii)	�ctypes�CDLL�gnu_get_libc_version�AttributeError�c_char_p�restype�
isinstance�str�decode)�process_namespacer�version_str�r��/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/glibc.py�glibc_version_string
s



rcCsHtjd|�}|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)rr)rrrrrr�have_compatible_glibc4srcCst�}|dkrdSd|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��glibc)r r )r)�
glibc_versionrrr�libc_verLsr#)	�
__future__rrrrrrrr#rrrr�<module>s

?>