From c4b9c9ebf3a860b3ba0476d5b599032b0728f6ab Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 28 Jul 2021 08:36:33 -0400 Subject: [PATCH] adapt changes to auditwheel directory in manylinux (#889) * adapt changes to auditwheel directory in manylinux See pypa/manylinux#1143. * find auditwheel path via `auditwheel --version` * use custom image instead * Update .github/workflows/build_wheel.yml --- .github/workflows/build_wheel.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 2d522e5cf3..ce72d9cc41 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -25,8 +25,9 @@ jobs: - name: Build wheels env: - CIBW_BUILD: "cp36-* cp37-* cp38-*" - CIBW_BEFORE_BUILD: pip install tensorflow && sed -i 's/libresolv.so.2"/libresolv.so.2", "libtensorflow_framework.so.2"/g' /opt/_internal/tools/lib/python*/site-packages/auditwheel/policy/policy.json + CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-*" + CIBW_MANYLINUX_X86_64_IMAGE: ghcr.io/deepmodeling/manylinux2010_x86_64_tensorflow + CIBW_BEFORE_BUILD: pip install tensorflow CIBW_SKIP: "*-win32 *-manylinux_i686" run: | python -m cibuildwheel --output-dir wheelhouse