]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Updating update-env.sh for some depenedencies
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 12 Feb 2019 11:21:09 +0000 (12:21 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 12 Feb 2019 11:21:09 +0000 (12:21 +0100)
update-env.sh

index 7f3f6e39cb74bfe55a34a81d88ce416d88390099..5de1efe76def7936a8f90309e6940b73211b2b25 100755 (executable)
@@ -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