diff --git a/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh b/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh index 6e13c703..cc1fb2f0 100755 --- a/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh +++ b/{{cookiecutter.project_slug}}/utility/install_os_dependencies.sh @@ -3,6 +3,12 @@ WORK_DIR="$(dirname "$0")" OS_REQUIREMENTS_FILENAME="$WORK_DIR/requirements.apt" +VER=$(lsb_release -sr) +if [ "$VER" == "16.04" ]; then + OS_REQUIREMENTS_FILENAME="requirements.apt.xenial" +else + OS_REQUIREMENTS_FILENAME="requirements.apt" +fi # Handle call with wrong command function wrong_command() { @@ -80,4 +86,3 @@ case "$1" in help) usage_message;; *) wrong_command $1;; esac - diff --git a/{{cookiecutter.project_slug}}/utility/requirements.apt.xenial b/{{cookiecutter.project_slug}}/utility/requirements.apt.xenial new file mode 100644 index 00000000..f29f6b40 --- /dev/null +++ b/{{cookiecutter.project_slug}}/utility/requirements.apt.xenial @@ -0,0 +1,44 @@ +##basic build dependencies of various Django apps for Ubuntu 14.04 +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg2 dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg8-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + + +##django-extensions +graphviz-dev + +##hitch +python-setuptools +python3-dev +python-virtualenv +python-pip +firefox +automake +libtool +libreadline6 +libreadline6-dev +libreadline-dev +libsqlite3-dev +libxml2 +libxml2-dev +libssl-dev +libbz2-dev +wget +curl +llvm