Skip to content

Commit cf88fc5

Browse files
committed
Use auditwheel show to detect platform wheels
To avoid masking errors when skipping non-platform wheels, use `auditwheel show` first to detect platform wheels.
1 parent 496c27e commit cf88fc5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

travis/build-wheels.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/bash
22
set -e -x
33

4+
function repair_wheel {
5+
wheel="$1"
6+
if ! auditwheel show "$wheel"; then
7+
echo "Skipping non-platform wheel $wheel"
8+
else
9+
auditwheel repair "$wheel" --plat "$PLAT" -w /io/wheelhouse/
10+
fi
11+
}
12+
13+
414
# Install a system package required by our library
515
yum install -y atlas-devel
616

@@ -12,8 +22,7 @@ done
1222

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

1928
# Install packages and test

0 commit comments

Comments
 (0)