YannickJadoul / Parselmouth

Praat in Python, the Pythonic way
https://parselmouth.readthedocs.io/
GNU General Public License v3.0
1.06k stars 116 forks source link

Pre-built arm64 wheels for the PyPy interpreter #100

Open wmtdru8xip opened 1 year ago

YannickJadoul commented 1 year ago

@wmtdru8xip, can you actually expand, please?

I do have pre-built wheels for PyPy uploaded to PyPI: https://pypi.org/project/praat-parselmouth/#files

wmtdru8xip commented 1 year ago

(Sorry, I didn't notice there are pre-built wheels for other platforms.) The pre-built binaries for PyPy on Darwin arm64 are absent.

YannickJadoul commented 1 year ago

Hah, thanks for the update! Now it makes more sense.

I do unfortunately have bad news, regarding this. https://cibuildwheel.readthedocs.io/en/stable/ says

Cross-compilation not supported with PyPy - to build these wheels you need to run cibuildwheel on an Apple Silicon machine.

So unless GitHub Actions starts offering arm64-hosted machines (or someone gives me one!), I cannot build these, I'm afraid.

Do you know of other projects that offer binary wheels for PyPy, and how they do it?

I know there is one CI provider, Cirrus CI, which provides native ARM64, but this would cost some effort to setup, and they recently started limiting their free usage, so I do not think I can systematically compile and test there: https://cirrus-ci.org/blog/2023/07/17/limiting-free-usage-of-cirrus-ci/

qimlisky commented 3 months ago

In the Ubuntu container in termux, the Python 3.10 installation gets stuck in the Building wheel for praat-Parselmouth, can this be solved? ARM64.

YannickJadoul commented 3 months ago

In the Ubuntu container in termux, the Python 3.10 installation gets stuck in the Building wheel for praat-Parselmouth, can this be solved? ARM64.

Do you have any more details, @qimlisky? Which operating system, how are you building, where are things getting stuck?

Levitate-CN commented 3 months ago

In the Ubuntu container in termux, the Python 3.10 installation gets stuck in the Building wheel for praat-Parselmouth, can this be solved? ARM64.

(sorry for my bad English)I also got stuck when building wheel on raspberry pi os (arm64). But after I waited for half an hour, it finally built successfully.So I suggest you wait patiently for a while.

YannickJadoul commented 3 months ago

Thanks, @Levitate-CN! Good to know. I still hope to get the prebuilt wheels out at some point. GitHub actions does now have some native runners, so I should try that at some point.

(also, I could perfectly understand you, so no worries about the English!)

Nick088Official commented 1 month ago

Thanks, @Levitate-CN! Good to know. I still hope to get the prebuilt wheels out at some point. GitHub actions does now have some native runners, so I should try that at some point.

(also, I could perfectly understand you, so no worries about the English!)

About this, recently I had the same issue of it taking 40 mins for building (It's one of the requirements for my RVC on Termux Guide), I made a pre-built wheel for Python 3.10 Aarch64 that could help people who are on termux, I explained how I did it here and uploaded the wheel on huggingface (for some reason I couldn't on a GitHub Repository), and was able to download it via wget -O praat_parselmouth-0.4.4-cp310-cp310-linux_aarch64.whl "https://huggingface.co/Nick088/praat_parselmouth-termux/resolve/main/praat_parselmouth-0.4.4-cp310-cp310-linux_aarch64.whl?download=true" && pip3.10 install praat_parselmouth-0.4.4-cp310-cp310-linux_aarch64.whl A friend of mine tested it too and seems to work fine!