run_in_venv: allow setting Python version

This commit is contained in:
Andrew Ferrazzutti
2025-02-07 10:53:54 -05:00
parent 2f8c31797b
commit d0f1835175
@@ -28,7 +28,7 @@ cd -- "$(dirname -- "$0")/.."
repo_root=$(git rev-parse --show-cdup)
venv_path=${repo_root:-./}.venv
[ -d "$venv_path" ] || python3.11 -m venv "$venv_path"
[ -d "$venv_path" ] || python${PYTHON_VERSION:-3} -m venv "$venv_path"
. "$venv_path/bin/activate"
pip install -e ."[dev]"