fix: align release Python setup with CI fallback logic
This commit is contained in:
@@ -61,9 +61,15 @@ jobs:
|
||||
run: |
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
apt-get update
|
||||
apt-get install -y python3.12 python3.12-venv python3-pip patchelf ccache
|
||||
apt-get install -y python3.12 python3.12-venv python3-pip patchelf ccache || \
|
||||
apt-get install -y python3 python3-pip python3-venv patchelf ccache
|
||||
elif command -v dnf >/dev/null 2>&1; then
|
||||
dnf install -y python3 python3-pip python3-devel patchelf ccache
|
||||
elif command -v yum >/dev/null 2>&1; then
|
||||
yum install -y python3 python3-pip python3-devel patchelf ccache
|
||||
else
|
||||
echo "No supported package manager found to install Python/build deps."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python3.12 --version || python3 --version
|
||||
|
||||
Reference in New Issue
Block a user