zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
U
H=®dá ã@s`ddlmZddlZddlZddlmZer<ddlmZmZdd„Z    dd„Z
d    d
„Z d d „Z dS) é)Úabsolute_importN)ÚMYPY_CHECK_RUNNING)ÚOptionalÚTuplecCs tƒp
tƒS)z9Returns glibc version string, or None if not using glibc.)Úglibc_version_string_confstrÚglibc_version_string_ctypes©rrúPD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/utils/glibc.pyÚglibc_version_stringsr
c
CsFtjdkrdSzt d¡ ¡\}}Wntttfk
r@YdSX|S)z@Primary implementation of glibc_version_string using os.confstr.Úwin32NÚCS_GNU_LIBC_VERSION)ÚsysÚplatformÚosÚconfstrÚsplitÚAttributeErrorÚOSErrorÚ
ValueError)Ú_Úversionrrr    rs
rcCsvz ddl}Wntk
r"YdSX| d¡}z
|j}Wntk
rNYdSX|j|_|ƒ}t|tƒsr|     d¡}|S)z=Fallback implementation of glibc_version_string using ctypes.rNÚascii)
ÚctypesÚ ImportErrorÚCDLLÚgnu_get_libc_versionrÚc_char_pÚrestypeÚ
isinstanceÚstrÚdecode)rÚprocess_namespacerÚ version_strrrr    r's 
 
 
 
rcCstƒ}|dkrdSd|fSdS)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)Úr#Úglibc)r
)Ú glibc_versionrrr    Úlibc_verWsr&) Ú
__future__rrr Úpip._internal.utils.typingrÚtypingrrr
rrr&rrrr    Ú<module>s  0