Cross compilation
Cross compilation is a complex topic, we only add some hopefully helpful hints
here (for now). As of May 2025, cross-compilation with a Meson cross file as
well as cross-compilation based on crossenv are known to work. Conda-forge
uses the latter method. Cross-compilation without crossenv requires passing
build options to meson setup via meson-python.
All distributions that are known to successfully cross compile NumPy are using
python -m build (pypa/build), but using pip for that should be
possible as well. Here are links to the NumPy “build recipes” on those
distros: