From 3de857273b25ecc370949156b71af2e2328c9468 Mon Sep 17 00:00:00 2001 From: esnvidia <80840697+esnvidia@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:42:02 -0400 Subject: [PATCH] Update build_wheels.py The attached file here fixes an issue using HuggingFace datasets requiring `soundfile` on aarch64. I compiled on this branch (bastibe/aarchh64-build) using `linux_build.sh` on Grace Hopper, which requires aarch64. This generated libsndfile.so which I renamed to libsndfile_aarch64.so to match the others Then, in [this line ](https://github.com/bastibe/python-soundfile/blob/master/build_wheels.py#L6)I added `'aarch64'` and built the whl as suggested `python setup.py bdist_wheel` followed by installing the `whl` with `pip install dist/soundfile-0.12.1-py2.py3-none-manylinux_2_17_aarch64.whl` This file should just be added to the repo along with the others. --- build_wheels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_wheels.py b/build_wheels.py index a2af99c..b972df3 100644 --- a/build_wheels.py +++ b/build_wheels.py @@ -3,7 +3,7 @@ architectures = dict(darwin=['x86_64', 'arm64'], win32=['32bit', '64bit'], - linux=['x86_64'], + linux=['x86_64', 'aarch64'], noplatform='noarch') def cleanup():