You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mobile-forge repository has a recipe for building a recent version of numpy for iOS using meson. However, that may rely on crossenv, which we're not currently using in the Android build tool, though it might be a good idea in the future. See other references to crossenv in the issue tracker and the Git repository.
The iOS recipe worked by patching NumPy's vendored copy of meson. However, the current NumPy version uses meson externally via pyproject.toml, so a different approach would be needed. Maybe we can change build-system to be a local directory which imports meson and monkey patches it.
However, the current NumPy version uses meson externally via pyproject.toml, so a different approach would be needed.
It doesn't, as of today Meson is still vendored within the NumPy source tree (and that won't change very fast unfortunately). However, that is unique to NumPy. I'd suggest focusing first on the regular use case, where meson is a build dependency. Reasonable patches can always be added to Meson itself and I'd then be happy to sync them to NumPy's vendored fork.
Activity
vjeson commentedon Dec 8, 2023
Waiting for this done #1040
mhsmith commentedon Dec 9, 2023
The mobile-forge repository has a recipe for building a recent version of numpy for iOS using meson. However, that may rely on crossenv, which we're not currently using in the Android build tool, though it might be a good idea in the future. See other references to crossenv in the issue tracker and the Git repository.
The iOS recipe worked by patching NumPy's vendored copy of meson. However, the current NumPy version uses meson externally via pyproject.toml, so a different approach would be needed. Maybe we can change build-system to be a local directory which imports meson and monkey patches it.
rgommers commentedon Nov 5, 2024
It doesn't, as of today Meson is still vendored within the NumPy source tree (and that won't change very fast unfortunately). However, that is unique to NumPy. I'd suggest focusing first on the regular use case, where
mesonis a build dependency. Reasonable patches can always be added to Meson itself and I'd then be happy to sync them to NumPy's vendored fork.mhsmith commentedon Nov 16, 2024
See also:
mhsmith commentedon Dec 9, 2025
build-wheel is now deprecated in favor of cibuildwheel, so further work will take place in the cibuildwheel or meson repositories.
mhsmith commentedon Jan 15, 2026
I'm now working on adding official Android support to meson (mesonbuild/meson-python#824).