From aa5e5f3361bbbf765339e2ad85d340d2f8d7f139 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Sat, 21 Apr 2018 18:19:57 +0100 Subject: [PATCH] Add Python3 and pip check to install.sh --- native/install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/native/install.sh b/native/install.sh index a557045f..990384e9 100755 --- a/native/install.sh +++ b/native/install.sh @@ -38,3 +38,15 @@ native_file_escaped=$(sed 's/[&/\]/\\&/g' <<< "$native_file") sed -i.bak "s/REPLACE_ME_WITH_SED/$native_file_escaped/" "$manifest_file" chmod +x $native_file + +# Requirements for native messenger +python_path=$(which python3) +pip_path=$(which pip3) +if [[ -x "$python_path" ]] && [[ -x "$pip_path" ]]; then + echo "Python 3 and pip found." + # pip3 install --user tinycss2 + # put dependencies here +else + echo "Error: Python 3 and pip3 must exist in PATH." + echo "Please install them and run this script again." +fi