mache.jigsaw.deploy_jigsawpy
- mache.jigsaw.deploy_jigsawpy(*, jigsaw_python_path: str = 'jigsaw-python', repo_root: str = '.', log_filename: str | None = None, quiet: bool = False, python_version: str | None = None, backend: str = 'auto', pixi_exe: str | None = None, pixi_manifest: str | None = None, pixi_feature: str | None = None, pixi_local: bool = False, conda_exe: str | None = None, conda_prefix: str | None = None) JigsawBuildResult[source]
Build and install
jigsawpyin one call.This convenience wrapper first builds a local conda package for
jigsawpy(including the bundled JIGSAW dependency) and then installs that package into either a pixi or conda environment. The resolved backend is used for both the build and install stages.- Parameters:
jigsaw_python_path (str) – Path to the
jigsaw-pythonsource relative torepo_root. Defaults to"jigsaw-python".repo_root (str) – Root directory containing the target source tree. Defaults to
".".log_filename (str, optional) – Log file path passed through to shell command execution. If
None, logs are discarded (written toos.devnull).quiet (bool) – If
True, suppress command echo to stdout and log only. Defaults toFalse.python_version (str, optional) – Python major/minor version used to select the build variant (for example
"3.14"). If omitted, the version is inferred from the active Python interpreter.backend ({"auto", "pixi", "conda"}, optional) – Backend used for both build and install stages.
"auto"infers backend from environment variables.pixi_exe (str, optional) – Path to the
pixiexecutable when backend resolves to"pixi".pixi_manifest (str, optional) – Pixi manifest path used when installing with backend
"pixi". If omitted,PIXI_PROJECT_MANIFESTis used.pixi_feature (str, optional) – Explicit pixi feature to target when installing with backend
"pixi". If omitted, a matching active pixi environment name is used when possible.pixi_local (bool, optional) – If
Trueand backend resolves to"pixi", install into a local copied manifest under.mache_cache/jigsaw/pixi-localinstead of mutating the source manifest directly.conda_exe (str, optional) – Conda executable used when installing with backend
"conda".conda_prefix (str, optional) – Target conda prefix used when backend is
"conda". If omitted,CONDA_PREFIXis used.
- Returns:
JigsawBuildResult – Metadata describing the produced local package channel and cache status.
- Raises:
ValueError – If backend-specific required arguments are missing or invalid.
RuntimeError – If source discovery, backend detection, or build/install steps fail.