Skip to content

Commit

Permalink
Merge pull request pypa#23 from lkollar/skip-non-platform-wheel
Browse files Browse the repository at this point in the history
Use `auditwheel show` to detect platform wheels
  • Loading branch information
lkollar authored May 11, 2020
2 parents 2d075e4 + cf88fc5 commit 8951a77
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions travis/build-wheels.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/bin/bash
set -e -x

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


# Install a system package required by our library
yum install -y atlas-devel

Expand All @@ -12,8 +22,7 @@ done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/ \
|| echo "Skipping non-platform wheel $whl"
repair_wheel "$whl"
done

# Install packages and test
Expand Down

0 comments on commit 8951a77

Please sign in to comment.