Repository URL to install this package:
|
Version:
1.0.8-2 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
setuptools
/
__pycache__
/
glibc.cpython-37.pyc
|
|---|
B
ÅHW´T&ÚXã @ sH d dl mZ d dlZd dlZd dlZdd Zdd Zdd Zd d
ZdS )é )Úabsolute_importNc C sP t d¡} y
| j}W n tk
r( dS X t j|_| }t|tsL| d¡}|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 ú8/tmp/pip-install-5x7thzyg/setuptools/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 )zTry to determine the glibc version
Returns a tuple of strings (lib, version) which default to empty strings
in case the lookup fails.
N)Ú r Úglibc)r )Ú
glibc_versionr r r Úlibc_verL s r# ) Ú
__future__r r r r r r r r# r r r r Ú<module> s