Your IP : 3.149.24.70


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/glibc.pyc

�
�Rec@@sddlmZddlZddlZddlmZerWddlmZmZnd�Z	d�Z
d�Zd�ZdS(	i(tabsolute_importN(tMYPY_CHECK_RUNNING(tOptionaltTuplecC@st�pt�S(s9Returns glibc version string, or None if not using glibc.(tglibc_version_string_confstrtglibc_version_string_ctypes(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/glibc.pytglibc_version_stringscC@sTtjdkrdSytjd�j�\}}Wntttfk
rOdSX|S(s@Primary implementation of glibc_version_string using os.confstr.twin32tCS_GNU_LIBC_VERSIONN(	tsystplatformtNonetostconfstrtsplittAttributeErrortOSErrort
ValueError(t_tversion((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/glibc.pyRscC@s�yddl}Wntk
r$dSX|jd�}y
|j}Wntk
rUdSX|j|_|�}t|t	�s�|j
d�}n|S(s=Fallback implementation of glibc_version_string using ctypes.iNtascii(tctypestImportErrorRtCDLLtgnu_get_libc_versionRtc_char_ptrestypet
isinstancetstrtdecode(Rtprocess_namespaceRtversion_str((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/glibc.pyR's


	cC@s't�}|dkrdSd|fSdS(s�Try to determine the glibc version

    Returns a tuple of strings (lib, version) which default to empty strings
    in case the lookup fails.
    ttglibcN(R R (RR(t
glibc_version((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/glibc.pytlibc_verWs	(
t
__future__RRR	tpip._internal.utils.typingRttypingRRRRRR#(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/glibc.pyt<module>s			0

?>