From 4d19546af06923a64d7ef1c75c1c5a7290a0fdae Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 18 Aug 2016 17:01:40 +0200 Subject: minor safety cleanup in build script --- tools/manylinux/build-wheels.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/manylinux/build-wheels.sh b/tools/manylinux/build-wheels.sh index 61826cbf..cadac925 100755 --- a/tools/manylinux/build-wheels.sh +++ b/tools/manylinux/build-wheels.sh @@ -38,11 +38,11 @@ prepare_system() { build_wheels() { # Compile wheels for all python versions + test -e "$SDIST" && source="$SDIST" || source= for PYBIN in /opt/python/*/bin; do - test -e "$SDIST" && source="$SDIST" || source= # Install build requirements if we need them and file exists - test -z "$SDIST" -a -e "$REQUIREMENTS" \ - && ${PYBIN}/pip install -r "$REQUIREMENTS" + test -n "$source" -o ! -e "$REQUIREMENTS" \ + || ${PYBIN}/pip install -r "$REQUIREMENTS" build_wheel "$source" done -- cgit v1.2.1