Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs: qualify ambiguous pixi install/build-docs tasks with -e default (#4639)

Himesh Rupchandani227d5c5a2572
diff --git a/AGENTS.md b/AGENTS.md
index 2e210173c..8e5cf6eda 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -23,7 +23,7 @@ Use Pixi for project tasks and environment selection. The tasks call `uv`, and P
```bash
pixi install
-pixi run install
+pixi run -e default install
pixi install -e py312
pixi run -e py312 install
pixi install -e py313
@@ -41,7 +41,7 @@ pixi run typecheck
pixi run toml-fmt
pixi run doctest
pixi run doctest-weights
-pixi run build-docs
+pixi run -e default build-docs
```
The `py312` and `py313` features select isolated `.venv-py312` and `.venv-py313` project environments automatically for install and test tasks.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 077abf0bc..136fad5fe 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -88,7 +88,7 @@ The rest of this guide contains practical and technical guidance so nobody has t
```bash
# Create the default Pixi environment, then install development dependencies
pixi install
- pixi run install
+ pixi run -e default install
# For specific Python versions
pixi install -e py312 # Python 3.12
@@ -108,8 +108,8 @@ The rest of this guide contains practical and technical guidance so nobody has t
```bash
# Installation
- pixi run install # Install dev dependencies
- pixi run install-docs # Install dev + docs dependencies
+ pixi run -e default install # Install dev dependencies
+ pixi run -e default install-docs # Install dev + docs dependencies
# Testing
pixi run test # Run tests (configure via KORNIA_TEST_* env vars)
@@ -134,7 +134,7 @@ The rest of this guide contains practical and technical guidance so nobody has t
pixi run doctest # Run doctests
# Documentation
- pixi run build-docs # Build documentation
+ pixi run -e default build-docs # Build documentation
# Utilities
pixi run clean # Clean Python cache files
@@ -158,7 +158,7 @@ The rest of this guide contains practical and technical guidance so nobody has t
pixi run test
```
- **Dependencies:** Defined in `pyproject.toml`. Update it and run `pixi run install`.
+ **Dependencies:** Defined in `pyproject.toml`. Update it and run `pixi run -e default install`.
**CUDA:** The CUDA environment uses PyTorch with CUDA 12.1. Run `pixi run -e cuda install` to set it up.
@@ -185,7 +185,7 @@ The rest of this guide contains practical and technical guidance so nobody has t
1. Set up your development environment (see [above](#developing-kornia))
2. Edit files in `docs/`
-3. Build docs: `pixi run build-docs`
+3. Build docs: `pixi run -e default build-docs`
4. Preview: `open docs/build/html/index.html`
5. Submit a PR following the [Pull Request](#pull-request) guidelines
diff --git a/README.md b/README.md
index 5434a3247..0b0e6ed4f 100644
--- a/README.md
+++ b/README.md
@@ -179,7 +179,7 @@ For development, Kornia uses [pixi](https://pixi.sh) for fast Python package man
# Create the Pixi environment and install development dependencies
pixi install
- pixi run install
+ pixi run -e default install
# Run tests
pixi run test
diff --git a/README_zh-CN.md b/README_zh-CN.md
index e759a79cf..020eb3cc5 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -92,7 +92,7 @@
# 创建 Pixi 环境并安装开发依赖
pixi install
- pixi run install
+ pixi run -e default install
# 运行测试
pixi run test
diff --git a/changelog.d/4639.fixed.md b/changelog.d/4639.fixed.md
new file mode 100644
index 000000000..78cb77267
--- /dev/null
+++ b/changelog.d/4639.fixed.md
@@ -0,0 +1 @@
+Setup documentation (`CONTRIBUTING.md`, `README.md`, `README_zh-CN.md`, `AGENTS.md`, `docs/export_support/README.md`) now qualifies the ambiguous Pixi tasks with `-e default`, so `pixi run install`, `pixi run install-docs` and `pixi run build-docs` work as documented instead of stopping with a "task is ambiguous" error or an environment picker.
diff --git a/docs/export_support/README.md b/docs/export_support/README.md
index f996c559f..9537d2614 100644
--- a/docs/export_support/README.md
+++ b/docs/export_support/README.md
@@ -34,9 +34,9 @@ the right shape.
## Regenerating the snapshot
```bash
-pixi run -e default install-docs && pixi run build-docs # once, so operators get cross-referenced
+pixi run -e default install-docs && pixi run -e default build-docs # once, so operators get cross-referenced
python docs/export_support/run.py # ~2 h on 8 CPU cores; resumable
-pixi run build-docs
+pixi run -e default build-docs
```
`run.py` writes per-group results and logs to `docs/export_support/results/` (git-ignored) and
diff --git a/docs/source/conf.py b/docs/source/conf.py
index bb2163145..0c929af0c 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -75,7 +75,7 @@ import torch.hub # noqa: E402
_weights_cache = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "weights")
# Only when there is a restored cache to use and the developer has not pointed
-# torch somewhere themselves: a local ``pixi run build-docs`` in a fresh clone has
+# torch somewhere themselves: a local ``pixi run -e default build-docs`` in a fresh clone has
# neither, and redirecting it would re-download all four checkpoints past a warm
# ``~/.cache/torch/hub``.
if os.path.isdir(_weights_cache) and not os.environ.get("TORCH_HOME"):