diff options
author | Elvis Pranskevichus <elvis@edgedb.com> | 2021-08-07 10:46:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 10:46:53 -0700 |
commit | f671cb4dbb84e5e575757bdf9c053ee797863eae (patch) | |
tree | 5decfc7bd1c6dcd999225c522abbdd2fd4798855 /.github/workflows/build-manylinux-wheels.sh | |
parent | 189b959d2e5f09660508482398414e2869c074ff (diff) | |
download | immutables-f671cb4dbb84e5e575757bdf9c053ee797863eae.tar.gz immutables-f671cb4dbb84e5e575757bdf9c053ee797863eae.zip |
Use cibuildwheel to build wheels (#70)
The cibuildwheel infra seems to be mature enough, so use it for the
wheel-building step instead of the homegrown setup. This gives us
32-bit and ARM wheels for free.
Fixes: #44
Fixes: #63
Diffstat (limited to '.github/workflows/build-manylinux-wheels.sh')
-rwxr-xr-x | .github/workflows/build-manylinux-wheels.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/.github/workflows/build-manylinux-wheels.sh b/.github/workflows/build-manylinux-wheels.sh deleted file mode 100755 index 0fdaf57..0000000 --- a/.github/workflows/build-manylinux-wheels.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -set -e -x - -PY_MAJOR=${PYTHON_VERSION%%.*} -PY_MINOR=${PYTHON_VERSION#*.} - -ML_PYTHON_VERSION="cp${PY_MAJOR}${PY_MINOR}-cp${PY_MAJOR}${PY_MINOR}" -if [ "${PY_MAJOR}" -lt "4" -a "${PY_MINOR}" -lt "8" ]; then - ML_PYTHON_VERSION+="m" -fi - -# Temporary workaround for https://github.com/actions/runner/issues/781 -export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib - -# Compile wheels -PYTHON="/opt/python/${ML_PYTHON_VERSION}/bin/python" -PIP="/opt/python/${ML_PYTHON_VERSION}/bin/pip" -"${PIP}" install --upgrade setuptools pip wheel -cd "${GITHUB_WORKSPACE}" -make clean -"${PYTHON}" setup.py bdist_wheel - -# Bundle external shared libraries into the wheels. -for whl in "${GITHUB_WORKSPACE}"/dist/*.whl; do - auditwheel repair $whl -w "${GITHUB_WORKSPACE}"/dist/ - rm "${GITHUB_WORKSPACE}"/dist/*-linux_*.whl -done |