From e9edbb6c6edb7f18a734f79a8695e7058dea21cc Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 8 May 2022 20:01:50 +0800 Subject: [PATCH] Fix auditwheel manylinux compliance scripts --- tests/manylinux_compliant.sh | 4 +++- tests/manylinux_incompliant.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/manylinux_compliant.sh b/tests/manylinux_compliant.sh index 7a4e3b086..5cba08c02 100755 --- a/tests/manylinux_compliant.sh +++ b/tests/manylinux_compliant.sh @@ -1,6 +1,8 @@ #!/bin/bash +set -e + which cargo > /dev/null 2>&1 || curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal -for PYBIN in /opt/python/cp3[6789]*/bin; do +for PYBIN in /opt/python/cp3[789]*/bin; do cargo run -- build --no-sdist -m test-crates/pyo3-mixed/Cargo.toml -i "${PYBIN}/python" --manylinux $1 -o dist done diff --git a/tests/manylinux_incompliant.sh b/tests/manylinux_incompliant.sh index a04a645c7..f2f2f05ba 100755 --- a/tests/manylinux_incompliant.sh +++ b/tests/manylinux_incompliant.sh @@ -1,4 +1,6 @@ #!/bin/bash +set -e + which cargo > /dev/null || curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal # Fail because we're running in manylinux2014, which can't build for manylinux 2010