From d2e4dfc851a2900066782c5ca515bc182321e0c3 Mon Sep 17 00:00:00 2001 From: Eman Calso Date: Tue, 24 May 2016 02:30:48 +0800 Subject: [PATCH] Install python3-dev if use_python2==n By default, ubuntu-based distros would install python2-dev if you install python-dev. python3-dev should be installed explicitly if we're not using python2. --- {{cookiecutter.project_slug}}/utility/requirements.apt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/{{cookiecutter.project_slug}}/utility/requirements.apt b/{{cookiecutter.project_slug}}/utility/requirements.apt index 2fb764c3d..9a18d50d4 100644 --- a/{{cookiecutter.project_slug}}/utility/requirements.apt +++ b/{{cookiecutter.project_slug}}/utility/requirements.apt @@ -3,7 +3,11 @@ build-essential #required to translate gettext +{% if cookiecutter.use_python2 == 'n' -%} +python3-dev +{% else %} python-dev +{%- endif %} ##shared dependencies of: ##Pillow, pylibmc