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

3

XoöhJã@sHddlmZddlZddlZddlZdd„Zdd„Zdd„Zd	d
„ZdS)é)Ú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_glibc4srcCstƒ}|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ÚZglibc)rr)r
)Z
glibc_versionrrrÚlibc_verLsr)	Z
__future__rrrrr
rrrrrrrÚ<module>s
Back to Directory File Manager