When using pixi to manage a project using both conda-forge and pypi, pixi wil…

When using pixi to manage a project using both conda-forge and pypi, pixi will isolate your pypi builds from the pixi environment – including the conda-forge requirements.

This seems ... "good" ... supposedly but it has dogged me for hours.

In order to add a pypi depedency that is aware of your conda dependencies you have to explicitly flag it to be excluded from build isolation

Even though build isolation is a good default. One can choose to not isolate the build for a certain package name, this allows the build to access the pixi environment. This is convenient if you want to use torch or something similar for your build-process.

[dependencies]
cython = "2.4.0"

[pypi-options]
no-build-isolation = ["madmom"]

[pypi-dependencies]
madmom = {version = ">=0.16.1,<0.17"}