File: //lib/python3.8/site-packages/setuptools/__pycache__/glibc.cpython-38.pyc
U
âQabJ ã @ sH d dl mZ d dlZd dlZd dlZdd„ Zdd„ Zdd„ Zd d
„ ZdS )é )Úabsolute_importNc C sR t d¡} z
| j}W n tk
r* Y dS X t j|_|ƒ }t|tƒsN| d¡}|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 ú4/usr/lib/python3.8/site-packages/setuptools/glibc.pyÚglibc_version_string
s
r
c C sH t d| ¡}|s$t d| t¡ dS t| d¡ƒ|koFt| d¡ƒ|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Úmr r r Úcheck_glibc_version$ s ÿÿÿr c C s t ƒ }|d krdS t|| |ƒS )NF)r
r )r r r
r r r Úhave_compatible_glibc4 s r c C s t ƒ } | dkrdS d| fS dS )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)Ú r Zglibc)r
)Z
glibc_versionr r r Úlibc_verL s r ) Z
__future__r r r r r
r r r r r r r Ú<module> s