From 164a496a85edbe1c5a67186ee8c9516aec78ba45 Mon Sep 17 00:00:00 2001 From: "Fabio C. Barrionuevo da Luz" Date: Fri, 13 Mar 2015 21:07:25 -0300 Subject: [PATCH] add shellscript helper to install external dependencies (non-python dependencies) listed on requirements.apt file --- .../install_os_dependencies.sh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 {{cookiecutter.repo_name}}/install_os_dependencies.sh diff --git a/{{cookiecutter.repo_name}}/install_os_dependencies.sh b/{{cookiecutter.repo_name}}/install_os_dependencies.sh new file mode 100755 index 00000000..35fb1e37 --- /dev/null +++ b/{{cookiecutter.repo_name}}/install_os_dependencies.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [[ $EUID -ne 0 ]]; then + echo -e "\nYou must run this with root privilege" 2>&1 + echo -e "Please do:\n" 2>&1 + echo "sudo ./${0##*/}" 2>&1 + echo -e "\n" 2>&1 + + exit 1 +else + + apt-get update + + # Install the basic compilation dependencies and other required libraries of this project + cat requirements.apt | grep -v "#" | xargs sudo apt-get install -y + + # cleaning downloaded packages from apt-get cache + apt-get clean + +fi