Consolidate apt install commands

This commit is contained in:
Daniel Goldberg 2020-02-03 09:15:22 +02:00
parent 2d5dbf0b53
commit fb98a9fa12
1 changed files with 1 additions and 7 deletions

View File

@ -104,17 +104,11 @@ if [[ ${python_cmd} == "" ]]; then
log_message "Python 3.7 command not found. Installing python 3.7."
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.7
sudo apt install python3.7 python3.7-dev
log_message "Python 3.7 is now available with command 'python3.7'."
python_cmd="python3.7"
fi
log_message "Updating package list"
sudo apt-get update
log_message "Install python3.7-dev"
sudo apt-get install python3.7-dev
log_message "Installing island requirements_island"
requirements_island="$ISLAND_PATH/requirements.txt"
${python_cmd} -m pip install -r "${requirements_island}" --user --upgrade || handle_error