usr/lib/python2.7/site-packages/setuptools/glibc.pyo000064400000003650147205133340016453 0ustar00ó Àfc@@s\ddlmZddlZddlZddlZd„Zd„Zd„Zd„ZdS(i(tabsolute_importNcC@sktjdƒ}y |j}Wntk r0dSXtj|_|ƒ}t|tƒsg|j dƒ}n|S(s9Returns glibc version string, or None if not using glibc.tasciiN( tctypestCDLLtNonetgnu_get_libc_versiontAttributeErrortc_char_ptrestypet isinstancetstrtdecode(tprocess_namespaceRt version_str((s4/usr/lib/python2.7/site-packages/setuptools/glibc.pytglibc_version_string s    cC@sdtjd|ƒ}|s0tjd|tƒtSt|jdƒƒ|koct|jdƒƒ|kS(Ns$(?P[0-9]+)\.(?P[0-9]+)s=Expected glibc version with 2 components major.minor, got: %stmajortminor(tretmatchtwarningstwarntRuntimeWarningtFalsetinttgroup(R trequired_majort minimum_minortm((s4/usr/lib/python2.7/site-packages/setuptools/glibc.pytcheck_glibc_version$s  cC@s)tƒ}|dkrtSt|||ƒS(N(RRRR(RRR ((s4/usr/lib/python2.7/site-packages/setuptools/glibc.pythave_compatible_glibc4s  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(RR(RR(t glibc_version((s4/usr/lib/python2.7/site-packages/setuptools/glibc.pytlibc_verLs  ( t __future__RRRRRRRR!(((s4/usr/lib/python2.7/site-packages/setuptools/glibc.pyts