From d0f183517562dfebc073ab2bd2cdc5310556d80c Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 7 Feb 2025 10:53:54 -0500 Subject: [PATCH] run_in_venv: allow setting Python version --- modules/restricted-guests/synapse/scripts/run_in_venv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/restricted-guests/synapse/scripts/run_in_venv.sh b/modules/restricted-guests/synapse/scripts/run_in_venv.sh index 7a222359ab..1125d3f238 100755 --- a/modules/restricted-guests/synapse/scripts/run_in_venv.sh +++ b/modules/restricted-guests/synapse/scripts/run_in_venv.sh @@ -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]"