Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-39.pyc
Ðазад
a "�h� � @ sp d dl Z d dlZd dlmZmZ ee d�dd�Zee d�dd�Zee d�dd �Zeeef d�d d�Z dS )� N)�Optional�Tuple)�returnc C s t � p t� S )z9Returns glibc version string, or None if not using glibc.)�glibc_version_string_confstr�glibc_version_string_ctypes� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pip/_internal/utils/glibc.py�glibc_version_string s r c C sV t jdkrdS z(t�d�} | du r(W dS | �� \}}W n tttfyP Y dS 0 |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�_�versionr r r r s r c C s� zddl } W n ty Y dS 0 z| �d�}W n tyD Y dS 0 z |j}W n tyd Y dS 0 | j|_|� }t|t �s�|� d�}|S )z=Fallback implementation of glibc_version_string using ctypes.r N�ascii)�ctypes�ImportError�CDLLr �gnu_get_libc_versionr �c_char_p�restype� isinstance�str�decode)r �process_namespacer �version_strr r r r s"