Skip to content

(docker) fix platform on manylinux wheel#2

Merged
zhangstevenunity merged 4 commits intohw-native-sys:mainfrom
zouzias:patch-1
Jan 31, 2026
Merged

(docker) fix platform on manylinux wheel#2
zhangstevenunity merged 4 commits intohw-native-sys:mainfrom
zouzias:patch-1

Conversation

@zouzias
Copy link
Copy Markdown
Contributor

@zouzias zouzias commented Jan 30, 2026

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.

Generated wheel is already released on pypi: https://pypi.org/project/ptoas/#files

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`.
# 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dockerfile also works for aarch64, need a top level ARG for the arch suffix

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Dockerfile starts from FROM quay.io/pypa/manylinux_2_34_x86_64, I guess we need to parameterize the FROM statement as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here should be RUN git clone https://github.com/zhangstevenunity/PTOAS.git

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


ENV PY_PATH="/opt/python/${PY_VER}"
ENV PATH="${PY_PATH}/bin:${PATH}"
ENV ARCH=${ARCH}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is empty, you need ARG ARCH for args defined before FROM

@zhangstevenunity zhangstevenunity merged commit c831639 into hw-native-sys:main Jan 31, 2026
Zhendong404 pushed a commit to Zhendong404/PTOAS that referenced this pull request Mar 27, 2026
docs: add math definitions, fix ISA conflicts, and add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants