Skip to content

Commit

Permalink
manylinux: small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed May 29, 2021
1 parent d2f9ef5 commit 282c716
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions manylinux/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ PLATFORM=manylinux2014_x86_64

set -e -x

function repair_wheel {
wheel="$1"
if ! auditwheel show "$wheel"; then
echo "Skipping non-platform wheel $wheel"
else
auditwheel repair "$wheel" --plat "$PLATFORM" -w /io/wheelhouse/
fi
}

# Compile wheels
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install cffi pytest setuptools
Expand All @@ -12,11 +21,7 @@ done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
if ! auditwheel show "$whl"; then
echo "Skipping non-platform wheel $whl"
else
auditwheel repair "$whl" --plat "$PLATFORM" -w /io/wheelhouse/
fi
repair_wheel "$whl"
done

# Install packages and test
Expand Down

0 comments on commit 282c716

Please sign in to comment.