ôY{ ã@stddlmZddlZddlZddlZddlZdd„Zdd„Zdd„Zd d „Z dS) é)Úabsolute_importNc Csltjdƒ}y |j}Wntk r4dSYnXtj|_|ƒ}t|tƒsh|jdƒ}|S)z9Returns glibc version string, or None if not using glibc.NÚascii) ÚctypesÚCDLLÚgnu_get_libc_versionÚAttributeErrorÚc_char_pÚrestypeÚ isinstanceÚstrÚdecode)Úprocess_namespacerÚ version_str©rú./tmp/pip-build-3puug3g5/pip/pip/utils/glibc.pyÚglibc_version_string s     rcCsdtjd|ƒ}|s0tjd|tƒdSt|jdƒƒ|koct|jdƒƒ|kS)Nz$(?P[0-9]+)\.(?P[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  rcCs)tƒ}|dkrdSt|||ƒS)NF)rr)rrrrrrÚhave_compatible_glibc3s  rcCs-tƒ}|dkrtjƒSd|fSdS)NÚglibc)rÚplatformÚlibc_ver)Ú glibc_versionrrrr"Ks   r") Ú __future__rrrr!rrrrr"rrrrÚs