From b8416d5d926090b654a580e9075ed8010b564992 Mon Sep 17 00:00:00 2001 From: nrontsis Date: Fri, 6 Jun 2025 14:49:52 +0000 Subject: [PATCH 1/2] Add script to build manylinux wheels --- build_wheels.sh | 12 ++++++++++++ setup.py | 2 ++ 2 files changed, 14 insertions(+) create mode 100755 build_wheels.sh diff --git a/build_wheels.sh b/build_wheels.sh new file mode 100755 index 0000000..06106b9 --- /dev/null +++ b/build_wheels.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -ex + +docker run --rm -v "$(pwd)":/io quay.io/pypa/manylinux_2_34_x86_64 \ + /bin/bash -c ' + set -e + for PYBIN in /opt/python/cp{311,312,313}*/bin; do + "${PYBIN}/pip" wheel /io -w /tmp/wheels + done + auditwheel repair /tmp/wheels/*.whl -w /io/wheelhouse + chown -R '"$(id -u):$(id -g)"' /io/wheelhouse +' \ No newline at end of file diff --git a/setup.py b/setup.py index c06bf92..c7c4c5a 100644 --- a/setup.py +++ b/setup.py @@ -34,5 +34,7 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', ], ) From 0d0908e2e0c4b02b14c32861bcd59a93a902b65e Mon Sep 17 00:00:00 2001 From: nrontsis Date: Fri, 6 Jun 2025 14:57:49 +0000 Subject: [PATCH 2/2] Remore chown --- build_wheels.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build_wheels.sh b/build_wheels.sh index 06106b9..0a8d1a1 100755 --- a/build_wheels.sh +++ b/build_wheels.sh @@ -8,5 +8,4 @@ docker run --rm -v "$(pwd)":/io quay.io/pypa/manylinux_2_34_x86_64 \ "${PYBIN}/pip" wheel /io -w /tmp/wheels done auditwheel repair /tmp/wheels/*.whl -w /io/wheelhouse - chown -R '"$(id -u):$(id -g)"' /io/wheelhouse -' \ No newline at end of file +'