mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +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
|
||||
fi
|
||||
|
||||
python_package="python3.10"
|
||||
python_package="python3.12"
|
||||
venv=".env-linux"
|
||||
reqs_file="requirements.txt"
|
||||
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
|
||||
apt update -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 python3-dev -y || exit 1
|
||||
|
||||
[[ -d "$script_dir/$venv" ]] && rm -r -f "$script_dir/$venv"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user