• File: glibc.cpython-36.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python3.6/site-packages/setuptools/__pycache__/glibc.cpython-36.pyc
  • Date Modified: 10/18/2026 11:59 PM
  • File size: 1.44 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
3

l]jJ@sHddlmZddlZddlZddlZddZddZddZd	d
ZdS))absolute_importNcCsPtjd}y
|j}Wntk
r(dSXtj|_|}t|tsL|jd}|S)z9Returns glibc version string, or None if not using glibc.Nascii)	ctypesZCDLLgnu_get_libc_versionAttributeErrorZc_char_pZrestype
isinstancestrdecode)Zprocess_namespacerversion_strr/usr/lib/python3.6/glibc.pyglibc_version_string
s



r
cCsHtjd|}|s$tjd|tdSt|jd|koFt|jd|kS)Nz$(?P<major>[0-9]+)\.(?P<minor>[0-9]+)z=Expected glibc version with 2 components major.minor, got: %sFmajorminor)rematchwarningswarnRuntimeWarningintgroup)r
required_major
minimum_minormrrrcheck_glibc_version$s
rcCst}|dkrdSt|||S)NF)r
r)rrr
rrrhave_compatible_glibc4srcCst}|dkrdSd|fSdS)zTry to determine the glibc version

    Returns a tuple of strings (lib, version) which default to empty strings
    in case the lookup fails.
    NZglibc)rr)r
)Z
glibc_versionrrrlibc_verLsr)	Z
__future__rrrrr
rrrrrrr<module>s