build(py): Fix 32-bit manylinux wheel builds
Manylinux2010 containers always ship a `linux32` binary, even on the
64-bit version. To build a 64-bit wheel, the check now looks at the
AUDITWHEEL_ARCH environment variable, instead
@@ -9,7 +9,10 @@ curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH=~/.cargo/bin:$PATH
# Build wheels
-which linux32 && LINUX32=linux32
+if [ "$AUDITWHEEL_ARCH" == "i686" ]; then
+ LINUX32=linux32
+fi
+
$LINUX32 /opt/python/cp27-cp27mu/bin/python setup.py bdist_wheel
# Audit wheels
