fix: use python3.12 explicitly for venv on Ubuntu Noble runner
This commit is contained in:
@@ -61,16 +61,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if command -v apt-get >/dev/null 2>&1; then
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y python3 python3-pip python3-venv patchelf ccache
|
apt-get install -y python3.12 python3.12-venv python3-pip patchelf ccache
|
||||||
elif command -v dnf >/dev/null 2>&1; then
|
elif command -v dnf >/dev/null 2>&1; then
|
||||||
dnf install -y python3 python3-pip python3-devel patchelf ccache
|
dnf install -y python3 python3-pip python3-devel patchelf ccache
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python3 --version
|
python3.12 --version || python3 --version
|
||||||
|
|
||||||
- name: Set up venv and install package + build deps
|
- name: Set up venv and install package + build deps
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv .venv
|
python3.12 -m venv .venv 2>/dev/null || python3 -m venv .venv
|
||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install -e ".[build]"
|
python -m pip install -e ".[build]"
|
||||||
|
|||||||
Reference in New Issue
Block a user