From 44adb3c06dd5606664dd320dd376cf93c5eb8f07 Mon Sep 17 00:00:00 2001 From: Anastasios Zouzias Date: Fri, 30 Jan 2026 13:27:22 +0100 Subject: [PATCH 1/4] (docker) fix platform on manylinux wheel Explicitly passes the `--plat manylinux_2_34_x86_64` parameter in `auditwheel repair` to make sure the output wheel has the correct tag `ptoas-0.1.0-py3-none-manylinux_2_34_x86_64.whl`. --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 58e37adb4..46315e1ca 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -74,7 +74,7 @@ RUN python setup.py bdist_wheel # fix missing so RUN export LD_LIBRARY_PATH=$LLVM_BUILD_DIR/lib:$PTO_INSTALL_DIR/lib:$LD_LIBRARY_PATH \ - && auditwheel repair dist/ptoas*.whl + && auditwheel repair --plat manylinux_2_34_x86_64 dist/ptoas*.whl RUN pip install wheelhouse/ptoas*.whl From df2cb5a9298a5eb9900248eaa4ea5b643a2a9684 Mon Sep 17 00:00:00 2001 From: Anastasios Zouzias Date: Fri, 30 Jan 2026 15:49:35 +0000 Subject: [PATCH 2/4] refactored docker build ARG --- docker/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 46315e1ca..bbfb22f31 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,6 @@ -FROM quay.io/pypa/manylinux_2_34_x86_64 +ARG ARCH=x86_64 + +FROM quay.io/pypa/manylinux_2_34_${ARCH} # NOTE: change $PY_VER for different Python versions (3.8 - 3.14 available) ARG PY_VER=cp312-cp312 @@ -38,7 +40,7 @@ RUN ninja -C $LLVM_BUILD_DIR # build ptoas WORKDIR $WORKSPACE_DIR -RUN git clone -b wheel https://github.com/learning-chip/PTOAS.git +RUN git clone https://github.com/learning-chip/PTOAS.git # TODO: tag git commit of PTOAS repo WORKDIR $PTO_SOURCE_DIR @@ -74,7 +76,7 @@ RUN python setup.py bdist_wheel # fix missing so RUN export LD_LIBRARY_PATH=$LLVM_BUILD_DIR/lib:$PTO_INSTALL_DIR/lib:$LD_LIBRARY_PATH \ - && auditwheel repair --plat manylinux_2_34_x86_64 dist/ptoas*.whl + && auditwheel repair --plat manylinux_2_34_${ARCH} dist/ptoas*.whl RUN pip install wheelhouse/ptoas*.whl From 973b6d9ca05f62a3cfb43eb4c9eff7f135a1def7 Mon Sep 17 00:00:00 2001 From: anastasios Date: Fri, 30 Jan 2026 15:57:25 +0000 Subject: [PATCH 3/4] bind ARG to ENV --- docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index bbfb22f31..ec9c21756 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,6 +10,7 @@ ARG LLVM_TAG=llvmorg-19.1.7 ENV PY_PATH="/opt/python/${PY_VER}" ENV PATH="${PY_PATH}/bin:${PATH}" +ENV ARCH=${ARCH} # dependency RUN dnf install -y ninja-build cmake git ccache gcc-c++ lld && dnf clean all From 537890dbcc886a56c079bc29c99f36a155f6a7f4 Mon Sep 17 00:00:00 2001 From: anastasios Date: Fri, 30 Jan 2026 16:02:20 +0000 Subject: [PATCH 4/4] fix git repo username zhangstevenunity --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ec9c21756..735464ef5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -41,7 +41,7 @@ RUN ninja -C $LLVM_BUILD_DIR # build ptoas WORKDIR $WORKSPACE_DIR -RUN git clone https://github.com/learning-chip/PTOAS.git +RUN git clone https://github.com/zhangstevenunity/PTOAS.git # TODO: tag git commit of PTOAS repo WORKDIR $PTO_SOURCE_DIR