This directory contains definitions for Pixi packages which can be built from the NumPy source code.
Downstream developers can make use of these packages by adding them as Git dependencies in a Pixi workspace, like:
[dependencies]
numpy = { git = "https://github.com/numpy/numpy", subdirectory = "pixi-packages/asan" }This is particularly useful when developers need to build NumPy from source (for example, for an ASan-instrumented build), as it does not require any manual clone or build steps. Instead, Pixi will automatically handle both the build and installation of the package.
See scipy/scipy#24066 for a full example of downstream use.
Each package definition is contained in a subdirectory. Currently defined package variants:
defaultasan: ASan-instrumented build with-Db_sanitize=address
- Keep host dependency requirements up to date
- For dependencies on upstream CPython Pixi packages, keep the git revision at a compatible version
- More package variants (such as TSan, UBSan)
- Support for Windows
- Using a single
pixi.tomlfor all package variants is blocked on prefix-dev/pixi#2813 - Consider pinning dependency versions to guard against upstream breakages over time