Understanding Meson
Building SciPy relies on the following tools, which can be considered part of the build system:
meson: the Meson build system, installable as a pure Python package from PyPI or conda-forgeninja: the build tool invoked by Meson to do the actual building (e.g. invoking compilers). Installable also from PyPI (on all common platforms) or conda-forge.pkg-config: the tool used for discovering dependencies (in particular BLAS/LAPACK). Available on conda-forge (and Homebrew, Chocolatey, and Linux package managers), but not packaged on PyPI.meson-python: the Python build backend (i.e., the thing that gets invoked via a hook inpyproject.tomlby a build frontend likepipor). This is a thin layer on top of Meson, with as main roles (a) interface with build frontends, and (b) produce sdists and wheels with valid file names and metadata.