Skip to content

Commit

Permalink
Update build_wheels.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
esnvidia authored Aug 22, 2024
1 parent 08750e3 commit 3de8572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

architectures = dict(darwin=['x86_64', 'arm64'],
win32=['32bit', '64bit'],
linux=['x86_64'],
linux=['x86_64', 'aarch64'],
noplatform='noarch')

def cleanup():
Expand Down

0 comments on commit 3de8572

Please sign in to comment.