Skip to content

Commit

Permalink
Make wheel build fail more quickly if anything goes wrong along the way.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Oct 17, 2020
1 parent f102799 commit ff946ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/manylinux/build-wheels.sh
Expand Up @@ -27,7 +27,7 @@ build_wheel() {
run_tests() {
# Install packages and test
for PYBIN in /opt/python/*/bin/; do
${PYBIN}/python -m pip install $PACKAGE --no-index -f /io/$WHEELHOUSE
${PYBIN}/python -m pip install $PACKAGE --no-index -f /io/$WHEELHOUSE || exit 1

# check import as a quick test
(cd $HOME; ${PYBIN}/python -c 'import lxml.etree, lxml.objectify')
Expand All @@ -36,7 +36,7 @@ run_tests() {

prepare_system() {
#yum install -y zlib-devel
rm -fr /opt/python/cp34-*
#rm -fr /opt/python/cp34-*
echo "Python versions found: $(cd /opt/python && echo cp* | sed -e 's|[^ ]*-||g')"
${CC:-gcc} --version
}
Expand All @@ -60,13 +60,13 @@ build_wheels() {
if [ "$(uname -m)" == "aarch64" ]; then FIRST=$THIRD; else FIRST=$SECOND; fi
SECOND=$THIRD
done
wait
wait || exit 1
}

repair_wheels() {
# Bundle external shared libraries into the wheels
for whl in /io/$WHEELHOUSE/${SDIST_PREFIX}-*.whl; do
auditwheel repair $whl -w /io/$WHEELHOUSE
auditwheel repair $whl -w /io/$WHEELHOUSE || exit 1
done
}

Expand Down

0 comments on commit ff946ad

Please sign in to comment.