관리-도구
편집 파일: glibc.cpython-36.pyc
3 �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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/glibc.py�glibc_version_string s r c C sD t jdkrdS ytjd�j� \} }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 | jd�}y |j}W n tk rJ dS X | j|_|� }t|t�sn|j 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 '