Purpose: Install all tools and Python dependencies for the ballpark repo using the automated setup script.
The ballpark repo includes a comprehensive setup script that installs everything you need in one command.
cd ~/GitHub/<your-username>/ballpark && pwd
Expected output: /home/.../GitHub/<your-username>/ballpark or /Users/.../GitHub/<your-username>/ballpark
Do not proceed until you see this output.
bash scripts/setup_env.sh
This installs:
The script prints a summary with version numbers when finished.
After the script completes, activate the virtual environment it created:
source .venv-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)/bin/activate
Or identify your environment manually:
ls .venv-*/
And activate the one matching your platform:
source .venv-darwin-arm64/bin/activatesource .venv-darwin-x86_64/bin/activatesource .venv-linux-x86_64/bin/activateecho $VIRTUAL_ENV
Expected: Full path ending in .venv-...
Your terminal prompt should now show (.venv-...) at the beginning.
If setup_env.sh fails, you can set up manually:
curl -LsSf https://astral.sh/uv/install.sh | shuv venv --python 3.12 .venv-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)UV_PROJECT_ENVIRONMENT=.venv-... uv sync --python 3.12npm install -g mystmdYou must activate the environment before:
Correct order:
cd ~/GitHub/<your-username>/ballparksource .venv-.../bin/activate