fix python 3.12 installation on ubuntu 22

This commit is contained in:
otavepto 2024-06-16 17:31:09 +03:00
parent f7e4394f34
commit 4204b356d7

View File

@ -16,7 +16,9 @@ apt install software-properties-common -y
add-apt-repository ppa:deadsnakes/ppa -y add-apt-repository ppa:deadsnakes/ppa -y
apt update -y || exit 1 apt update -y || exit 1
apt install "$python_package" -y || exit 1 apt install "$python_package" -y || exit 1
apt install "$python_package-dev" -y || exit 1
apt install "$python_package-venv" -y || exit 1 apt install "$python_package-venv" -y || exit 1
apt install python3-dev -y || exit 1
[[ -d "$script_dir/$venv" ]] && rm -r -f "$script_dir/$venv" [[ -d "$script_dir/$venv" ]] && rm -r -f "$script_dir/$venv"