#!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")" export UV_CACHE_DIR="$PWD/.cache/uv" if ! command -v uv >/dev/null 2>&1; then echo "Install uv or create a Python 3.11–3.13 virtual environment and run: python -m pip install -e '.[test]'" exit 1 fi uv venv --python 3.13 .venv uv pip install --python .venv/bin/python -e '.[test]' echo "Ready. Run: source .venv/bin/activate && image3d doctor"