-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update build_wheels.py for aarch64 support #441
Conversation
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.
See also: bastibe/libsndfile-binaries#35 |
This needs to be added to python-package.yml as well, in order to compile. |
add aarch64 to architecture
Updated |
This does not seem to work in the CI. |
I learned that apparently aarch64 with armv9 is not supported and armv8 is in beta for the CI pipeline.
|
I see. Thank you for the analysis. Do you know the timeline of these changes? Should we just wait for aarch64 to become available, or do we need a different workaround? |
No, not aware of the timeline for these changes to be implemented in Github CI runner. Perhaps a workaround would be to build from source of the |
If you need this feature, please update the merge request accordingly. Otherwise, I'll close it. |
I have manually merged these changes. Thank you very much. |
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 othersThen, in this line I added
'aarch64'
and built the whl as suggestedpython setup.py bdist_wheel
followed by installing thewhl
withpip 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.