관리-도구
편집 파일: glibc.cpython-37.pyc
B ��Re� � @ s` d dl mZ d dlZd dlZd dlmZ er<d dlmZmZ dd� Z dd� Z d d � Zdd� ZdS ) � )�absolute_importN)�MYPY_CHECK_RUNNING)�Optional�Tuplec 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 ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/glibc.py�glibc_version_string s r c C sD t jdkrdS yt�d��� \} }W n tttfk r> dS X |S )z@Primary implementation of glibc_version_string using os.confstr.�win32N�CS_GNU_LIBC_VERSION)�sys�platform�os�confstr�split�AttributeError�OSError� ValueError)�_�versionr r r r s r c C sr yddl } W n tk r dS X | �d�}y |j}W n tk rJ dS X | j|_|� }t|t�sn|� d�}|S )z=Fallback implementation of glibc_version_string using ctypes.r N�ascii) �ctypes�ImportError�CDLL�gnu_get_libc_versionr �c_char_p�restype� isinstance�str�decode)r �process_namespacer �version_strr r r r '