Skip to content

Commit

Permalink
Use a python3 venv on Linux distros (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo authored Jun 22, 2023
1 parent 261ee77 commit 4d8b818
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/ci-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,20 @@ echo TESTSUITE:
echo
cd testsuite

# On Windows, python3/pip3 don't explicitly exist
# On Windows, python3/pip3 don't explicitly exist. Also we don't need a venv.
if [ "${OS:-}" == "Windows_NT" ]; then
run_python=python
run_pip=pip
else
run_python=python3
run_pip=pip3
# Some distros complain that we are trying to install packages globally,
# e.g. latest Debian, so use a virtualenv:
$run_python -m venv venv && . venv/bin/activate
fi

echo PYTHON installing testsuite dependencies...

echo Python version: $($run_python --version)
echo Pip version: $($run_pip --version)

Expand Down

0 comments on commit 4d8b818

Please sign in to comment.