summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2016-08-18 17:01:40 +0200
committerStefan Behnel <stefan_ml@behnel.de>2016-08-18 17:01:40 +0200
commit4d19546af06923a64d7ef1c75c1c5a7290a0fdae (patch)
treeeeb7428bc8e3e8b1e1264c300e732970c9f91a1c
parent0ca93d4c9268d293288f6fb2bc28558a67fcd329 (diff)
downloadpython-lxml-4d19546af06923a64d7ef1c75c1c5a7290a0fdae.tar.gz
minor safety cleanup in build script
-rwxr-xr-xtools/manylinux/build-wheels.sh6
1 files 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