upgrade migrate_gse python version

This commit is contained in:
otavepto 2024-06-16 17:54:56 +03:00
parent c53f7fed6d
commit 571d009d77

View File

@ -6,15 +6,19 @@ if [ "$(id -u)" -ne 0 ]; then
exit 1 exit 1
fi fi
python_package="python3.10" python_package="python3.12"
venv=".env-linux" venv=".env-linux"
reqs_file="requirements.txt" reqs_file="requirements.txt"
script_dir=$( cd -- "$( dirname -- "${0}" )" &> /dev/null && pwd ) script_dir=$( cd -- "$( dirname -- "${0}" )" &> /dev/null && pwd )
apt update -y || exit 1
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"