Closed kalekundert closed 1 year ago
This looks good to me. I enforced pip=23.2.1 explicitly in CI, and it works perfect. If you think it is ready, I will merge it.
I think it's ready to merge. Thanks for getting this done so fast!
Merged. Thank you for your contribution!
Now the new version is on Pypi. Thank you again for your contribution.
This PR moves to the meson build system for compiling the fortran extension modules. I mostly followed the instructions on this page, with some inspiration taken from the scikit-image project. This would fix #22.
Here is an example of the install process:
Some caveats:
python==3.12.0rc1
, becausepip install numpy
doesn't work yet in that environment: numpy/numpy#23808. The issue is that all thenumpy
distributions uploaded to PyPI still depend on distutils. Presumably this will be fixed soon, but for now I did all my testing withpython==3.10
.mesonpy
build backend is supposed to setup some clever system where recompiles extension modules on the fly when you import them, as described here. But for some reason it fails to find thenumpy
headers when it does this. I couldn't figure out why. It's possible that this is a bug inmesonpy
, since the non-editable install does work. For troubleshooting this, it's probably useful to set the$MESONPY_EDITABLE_VERBOSE
environment variable.