diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-11-01 11:29:23 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-11-02 13:54:10 +0100 |
commit | fd32c6188e27a636624f6082b7ac5cf5c1d10b48 (patch) | |
tree | ce9c3ab434addd4127a1e9b27ced77e5ddc59e0e /tools | |
parent | 75fbd5077de1852b6b43e1ddc70f86cefc42e08b (diff) | |
download | python-lxml-fd32c6188e27a636624f6082b7ac5cf5c1d10b48.tar.gz |
Add wheel building workflow for Github Actions.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/manylinux/build-wheels.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/manylinux/build-wheels.sh b/tools/manylinux/build-wheels.sh index 65d76029..3431df47 100755 --- a/tools/manylinux/build-wheels.sh +++ b/tools/manylinux/build-wheels.sh @@ -9,6 +9,7 @@ REQUIREMENTS=/io/requirements.txt SDIST=$1 PACKAGE=$(basename ${SDIST%-*}) SDIST_PREFIX=$(basename ${SDIST%%.tar.gz}) +[ -z "$PYTHON_BUILD_VERSION" ] && PYTHON_BUILD_VERSION="*" build_wheel() { pybin="$1" @@ -16,6 +17,7 @@ build_wheel() { [ -n "$source" ] || source=/io env STATIC_DEPS=true \ + RUN_TESTS=true \ LDFLAGS="$LDFLAGS -fPIC" \ CFLAGS="$CFLAGS -fPIC" \ ${pybin}/pip \ @@ -26,7 +28,7 @@ build_wheel() { run_tests() { # Install packages and test - for PYBIN in /opt/python/*/bin/; do + for PYBIN in /opt/python/${PYTHON_BUILD_VERSION}/bin/; do ${PYBIN}/python -m pip install $PACKAGE --no-index -f /io/$WHEELHOUSE || exit 1 # check import as a quick test @@ -47,7 +49,7 @@ build_wheels() { FIRST= SECOND= THIRD= - for PYBIN in /opt/python/*/bin; do + for PYBIN in /opt/python/${PYTHON_BUILD_VERSION}/bin; do # Install build requirements if we need them and file exists test -n "$source" -o ! -e "$REQUIREMENTS" \ || ${PYBIN}/python -m pip install -r "$REQUIREMENTS" |