[workspace]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "linux-aarch64", "osx-arm64"]
preview = ["pixi-build"]
requires-pixi = ">=0.66.0"

[package.build]
source.path = "../.."

[package.build.backend]
name = "pixi-build-python"
version = "*"

[package.build.config]
extra-input-globs = ["**/*.c.src"]
compilers = ["c", "cxx"]
extra-args = ["-Csetup-args=-Dbuildtype=debug"]

[package.host-dependencies]
# FIXME https://github.com/numpy/numpy/issues/30478
# python = "*" prevents downstream from building cpython from sources.
# Workaround: fork numpy, then uncomment one of the following and
# comment  out the other.

# Use latest cpython release from conda-forge
python = "*"

# Use cpython git tip
# python.git = "https://github.com/python/cpython"
# python.subdirectory = "Tools/pixi-packages/default"
# python.rev = "55ea59e7dc35e1363b203ae4dd9cfc3a0ac0a844"  # v3.15.0a8

meson-python = "*"
cython = "*"
uv = "*" # used to invoke the wheel build
