#!/usr/bin/env bash set -euo pipefail PROJECT_ROOT="/d/ai/training/openbiollm-phi" PYTHON_VERSION="3.12.13" cd "$PROJECT_ROOT" if ! command -v uv >/dev/null 2>&1; then echo "Installing uv..." curl -LsSf https://astral.sh/uv/install.sh | sh fi export PATH="$HOME/.local/bin:$PATH" echo "Installing Python $PYTHON_VERSION..." uv python install "$PYTHON_VERSION" printf '%s\n' "$PYTHON_VERSION" > .python-version echo "Creating .venv..." rm -rf .venv uv venv --python "$PYTHON_VERSION" .venv source .venv/bin/activate echo echo "=== ENVIRONMENT ===" uv --version python --version which python git add \ scaffolding/00-audit.sh \ scaffolding/01-create-venv.sh \ .python-version git commit -m "Add system audit and repeatable Python environment" echo echo "=== GIT STATUS ===" git status --short