def _pep425_supports_manylinux():
    """
    :return:
        A boolean indicating if the machine can use manylinux1 packages
    """

    try:
        import _manylinux
        return bool(_manylinux.manylinux1_compatible)
    except (ImportError, AttributeError):
        pass

    # Check for glibc 2.5
    try:
        proc = ctypes.CDLL(None)
        gnu_get_libc_version = proc.gnu_get_libc_version
        gnu_get_libc_version.restype = ctypes.c_char_p

        ver = gnu_get_libc_version()
        if not isinstance(ver, str_cls):
            ver = ver.decode('ascii')
        match = re.match(r'(\d+)\.(\d+)', ver)
        return match and match.group(1) == '2' and int(match.group(2)) >= 5

    except (AttributeError):
        return False
def _pep425_supports_manylinux ( ) : try : import _manylinux return bool ( _manylinux . manylinux1_compatible ) except ( ImportError , AttributeError ) : pass try : proc = ctypes . CDLL ( None ) gnu_get_libc_version = proc . gnu_get_libc_version gnu_get_libc_version . restype = ctypes . c_char_p ver = gnu_get_libc_version ( ) if not isinstance ( ver , str_cls ) : ver = ver . decode ( 'ascii' ) match = re . match ( r'(\d+)\.(\d+)' , ver ) return match and match . group ( 1 ) == '2' and int ( match . group ( 2 ) ) >= 5 except ( AttributeError ) : return False
:return:
        A boolean indicating if the machine can use manylinux1 packages