From: Frank Brehm Date: Tue, 12 Feb 2019 11:21:09 +0000 (+0100) Subject: Updating update-env.sh for some depenedencies X-Git-Tag: 1.6.4^2~60 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=ac5f1e676ab813414b8a292be23b9a114725d4c9;p=pixelpark%2Fpuppetmaster-webhooks.git Updating update-env.sh for some depenedencies --- 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