From ac5f1e676ab813414b8a292be23b9a114725d4c9 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 12 Feb 2019 12:21:09 +0100 Subject: [PATCH] Updating update-env.sh for some depenedencies --- update-env.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/update-env.sh b/update-env.sh index 7f3f6e3..5de1efe 100755 --- a/update-env.sh +++ b/update-env.sh @@ -4,6 +4,20 @@ base_dir=$( dirname $0 ) cd ${base_dir} base_dir=$( readlink -f . ) +if type -t virtualenv >/dev/null ; then + : +else + echo "Command 'virtualenv' not found, please install package 'python-virtualenv' or appropriate." >&2 + exit 6 +fi + +if type -t msgfmt >/dev/null ; then + : +else + echo "Command 'msgfmt' not found, please install package 'gettext' or appropriate." >&2 + exit 6 +fi + declare -a VALID_PY_VERSIONS=("3.8" "3.7" "3.6" "3.5") echo "Preparing virtual environment …" @@ -32,6 +46,12 @@ fi . venv/bin/activate || exit 5 +echo "---------------------------------------------------" +echo "Upgrading PIP ..." +echo +pip install --upgrade --upgrade-strategy eager pip +echo + echo "---------------------------------------------------" echo "Installing and/or upgrading necessary modules ..." echo -- 2.39.5