mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
upgrade migrate_gse python version
This commit is contained in:
parent
c53f7fed6d
commit
571d009d77
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user