#!/usr/bin/env bash # Create a local virtual environment in .venv and install dependencies set -e if [ -d .venv ]; then echo ".venv already exists. Skipping venv creation." else python3 -m venv .venv fi echo "Activating and installing requirements..." source .venv/bin/activate pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt else echo "No requirements.txt found - nothing to install." fi echo "Virtual environment ready. Activate it with: source .venv/bin/activate"