Allow specifying Python version for virtual environment creation

This commit is contained in:
2025-11-15 11:42:13 +01:00
parent 064364caa6
commit 15349c9390

View File

@@ -1,6 +1,8 @@
#! /usr/bin/env bash #! /usr/bin/env bash
python3 -m venv .venv VERSION="${1:-3}"
python${VERSION} -m venv .venv
./.venv/bin/pip install --upgrade pip ./.venv/bin/pip install --upgrade pip
./.venv/bin/pip install -r requirements.txt ./.venv/bin/pip install -r requirements.txt