3 ð(Ó\J ã@sHddlmZddlZddlZddlZdd„Zdd„Zdd„Zd d „ZdS) é)Úabsolute_importNc CsPtjdƒ}y |j}Wntk r(dSXtj|_|ƒ}t|tƒsL|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úl/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-install-rm6ck8ia/setuptools/setuptools/glibc.pyÚglibc_version_string s    rcCsHtjd|ƒ}|s$tjd|tƒdSt|jdƒƒ|koFt|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  rcCstƒ}|dkrdSt|||ƒS)NF)rr)rrrrrrÚ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ÚÚglibc)r r )r)Ú glibc_versionrrrÚlibc_verLsr#) Ú __future__rrrrrrrr#rrrrÚs