Viewing File: /usr/lib/python3.6/site-packages/pip/utils/__pycache__/glibc.cpython-36.opt-1.pyc

3

£éaj{ã@sPddlmZddlZddlZddlZddlZdd„Zdd„Zdd„Zd	d
„Z	dS)é)Úabsolute_importNcCsPtjdƒ}y
|j}Wntk
r(dSXtj|_|ƒ}t|tƒsL|jdƒ}|S)z9Returns glibc version string, or None if not using glibc.NÚascii)	ÚctypesZCDLLÚgnu_get_libc_versionÚAttributeErrorZc_char_pZrestypeÚ
isinstanceÚstrÚdecode)Zprocess_namespacerÚversion_str©rú/usr/lib/python3.6/glibc.pyÚglibc_version_string	s



r
cCsHtjd|ƒ}|s$tjd|tƒdSt|jdƒƒ|koFt|jdƒƒ|kS)Nz$(?P<major>[0-9]+)\.(?P<minor>[0-9]+)z=Expected glibc version with 2 components major.minor, got: %sFÚmajorÚminor)ÚreÚmatchÚwarningsÚwarnÚRuntimeWarningÚintÚgroup)r
Úrequired_majorÚ
minimum_minorÚmrrrÚcheck_glibc_version#s
rcCstƒ}|dkrdSt|||ƒS)NF)r
r)rrr
rrrÚhave_compatible_glibc3srcCs"tƒ}|dkrtjƒSd|fSdS)NZglibc)r
ÚplatformÚlibc_ver)Z
glibc_versionrrrrKsr)
Z
__future__rrrrrr
rrrrrrrÚ<module>s
Back to Directory File Manager