|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/ |
3
ՔReJ � @ sH d dl mZ d dlZd dlZd dlZdd� Zdd� Zdd� Zd d
� ZdS )� )�absolute_importNc C sP t jd�} y
| j}W n tk
r( dS X t j|_|� }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.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/glibc.py�glibc_version_string
s
r c C sH t jd| �}|s$tjd| t� dS t|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�mr r r �check_glibc_version$ s
r c C s t � }|d krdS t|| |�S )NF)r r )r r r r r r �have_compatible_glibc4 s r c C s t � } | dkrdS d| fS dS )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_versionr r r �libc_verL s r# ) �
__future__r r r r r r r r# r r r r �<module> s