From 9ca8f5dffadfe64f83cde790cb2d92c25e206d19 Mon Sep 17 00:00:00 2001 From: joocer Date: Sat, 20 Jul 2024 15:30:43 +0100 Subject: [PATCH] 1806 --- build-wheels.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/build-wheels.sh b/build-wheels.sh index 03e136e47..e8e1d0f0c 100644 --- a/build-wheels.sh +++ b/build-wheels.sh @@ -7,15 +7,16 @@ export PATH="$HOME/.cargo/bin:$PATH" cd $GITHUB_WORKSPACE/io cd io -PYTHON_VERSIONS=("cp39" "cp310" "cp311" "cp312") +# Only build for the specified Python version +PYBIN="/opt/python/cp${PYTHON_VERSION//.}/bin" -for PYBIN in /opt/python/${PYTHON_VERSIONS[@]/#/cp}/bin; do - if [[ "${PYBIN}" == *"${PYTHON_VERSION}"* ]]; then - "${PYBIN}/pip" install -U setuptools wheel setuptools-rust numpy==1.* cython - "${PYBIN}/python" setup.py bdist_wheel - fi -done +# Install necessary packages +"${PYBIN}/pip" install -U setuptools wheel setuptools-rust numpy==1.* cython +# Build the wheel +"${PYBIN}/python" setup.py bdist_wheel + +# Repair the wheel using auditwheel for whl in dist/*.whl; do auditwheel repair "$whl" -w dist/ done \ No newline at end of file