manylinux1-check.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:manylinux 作者: pypa 项目源码 文件源码
def is_manylinux1_compatible():
    # Only Linux, and only x86-64 / i686
    from distutils.util import get_platform
    if get_platform() not in ["linux-x86_64", "linux-i686"]:
        return False

    # Check for presence of _manylinux module
    try:
        import _manylinux
        return bool(_manylinux.manylinux1_compatible)
    except (ImportError, AttributeError):
        # Fall through to heuristic check below
        pass

    # Check glibc version. CentOS 5 uses glibc 2.5.
    return have_compatible_glibc(2, 5)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号