Closed amirouche closed 3 years ago
Interesting. I'm not very experienced with the details here (PyO3 does a very good job of just Making Things Work), but I wonder if this is related to this comment in PyO3:
// PyUnicode_AsUTF8AndSize only available on limited API from Python 3.10 and up.
These declarations might also be relevant? @davidhewitt do you think I should report this upstream on the PyO3 repo?
The FFI declaration you pick out is correct. Looks like in PyO3 0.12 there was a bug with this declaration where it lacked the PyPy name. If you upgrade pyo3 things should work.
Thanks!
Awesome. I'll release a version bump.
Just released version 0.2.0 and confirmed that pip install blake3
under PyPy gives a working library.
I'd like to add PyPy to the regular CI test runs, but it looks like maturin develop
doesn't work under PyPy. (It runs, but then trying to import blake3
doesn't find anything.) I might play around with hacking something toget to get the local build installed, but please let me know if I've missed anything obvious.
Hmm it's very possible there could be issues with maturin develop
on PyPy? If so, worth reporting upstream.
In our PyO3 CI we install a test module using tox, which works ok. https://github.com/PyO3/pyo3/tree/main/examples/pyo3-pytests
Thanks, I've filed https://github.com/PyO3/maturin/issues/595.
blake3-py
works with cpython 3.9, but it does not work with PyPy 7.3.5.