Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

esnvidia
Copy link

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 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.

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.
@esnvidia
Copy link
Author

See also: bastibe/libsndfile-binaries#35

@bastibe
Copy link
Owner

bastibe commented Aug 26, 2024

This needs to be added to python-package.yml as well, in order to compile.

add aarch64 to architecture
@esnvidia
Copy link
Author

Updated python-package.yml

@bastibe
Copy link
Owner

bastibe commented Sep 12, 2024

This does not seem to work in the CI.

@esnvidia
Copy link
Author

esnvidia commented Sep 12, 2024 via email

@bastibe
Copy link
Owner

bastibe commented Sep 13, 2024

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?

@esnvidia
Copy link
Author

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 os.platform() is aarch64?

@bastibe
Copy link
Owner

bastibe commented Oct 14, 2024

If you need this feature, please update the merge request accordingly. Otherwise, I'll close it.

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.

2 participants