Skip to content

Commit

Permalink
Add linux aarch64 wheel build support
Browse files Browse the repository at this point in the history
Copy of external PR - #32
  • Loading branch information
[email protected] authored and [email protected] committed Apr 26, 2022
1 parent 1af92af commit 5c9f3fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_manylinux_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ PLAT=manylinux2014_x86_64 && docker run --rm -e PLAT=$PLAT -v `pwd`:/io quay.io

PLAT=manylinux_2_24_x86_64 && docker run --rm -e PLAT=$PLAT -v `pwd`:/io quay.io/pypa/$PLAT /io/build_manylinux_wheels_entry_point.sh |& tee $PLAT.log &

docker run --rm --privileged tonistiigi/binfmt:latest --install all &

PLAT=manylinux2014_aarch64 && docker run --rm -e PLAT=$PLAT -v `pwd`:/io quay.io/pypa/$PLAT /io/build_manylinux_wheels_entry_point.sh |& tee $PLAT.log &

wait

sudo chown -R $USER:$USER dist/
4 changes: 4 additions & 0 deletions build_manylinux_wheels_entry_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ for whl in wheelhouse/$PLAT/*-linux_x86_64.whl; do
repair_wheel "$whl"
done

for whl in wheelhouse/$PLAT/*-linux_aarch64.whl; do
repair_wheel "$whl"
done

# Remove wheelhouse/$PLAT if it's empty
if [ -z "$(ls -A wheelhouse/$PLAT)" ]; then
rm -rf "wheelhouse/$PLAT"
Expand Down

0 comments on commit 5c9f3fd

Please sign in to comment.