mache.jigsaw.detect_install_backend
- mache.jigsaw.detect_install_backend(*, backend: str = 'auto') str[source]
Resolve the jigsaw installation backend.
- Parameters:
backend ({"auto", "pixi", "conda"}, optional) – Explicit backend selection. When set to
"auto", backend is inferred from environment variables.- Returns:
str – Resolved backend name, either
"pixi"or"conda".- Raises:
ValueError – If
backendis not one of"auto","pixi", or"conda".RuntimeError – If
backend="auto"and no supported environment variables are detected.
Notes
Auto-detection currently prefers pixi when either
PIXI_PROJECT_MANIFESTorPIXI_PROJECT_ROOTis set; otherwise it falls back to conda whenCONDA_PREFIXis set.