From 7d88c60ed1a8a63dbfcc00832b523eac990a15ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 12 Feb 2019 20:15:04 +0100 Subject: [PATCH] Fix virtualenv setup --- scripts/install | 6 +++--- scripts/upgrade | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 1764eb3..a872873 100644 --- a/scripts/install +++ b/scripts/install @@ -114,7 +114,7 @@ ynh_system_user_create "$app" "$final_path" # pip installation #================================================= -virtualenv "$final_path/local" +virtualenv --python=$(which python2 python | head -n 1) "$final_path/local" # Init virtualenv ( set +o nounset @@ -122,10 +122,10 @@ virtualenv "$final_path/local" set -o nounset cd "$final_path" pip install --upgrade pip - pip install pyramid_chameleon + pip install --upgrade pyramid_chameleon CFLAGS="-Wno-error -Wno-error=format-security" \ ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" \ - pip install --requirement "$final_path/requirements.txt" + pip install --upgrade --requirement "$final_path/requirements.txt" python "$final_path/setup.py" develop diff --git a/scripts/upgrade b/scripts/upgrade index 84eb1d6..437b9f0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -133,7 +133,7 @@ ynh_system_user_create "$app" # pip installation #================================================= -virtualenv "$final_path/local" +virtualenv --python=$(which python2 python | head -n 1) "$final_path/local" # Init virtualenv ( set +o nounset @@ -141,10 +141,10 @@ virtualenv "$final_path/local" set -o nounset cd "$final_path" pip install --upgrade pip - pip install pyramid_chameleon + pip install --upgrade pyramid_chameleon CFLAGS="-Wno-error -Wno-error=format-security" \ ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" \ - pip install --requirement "$final_path/requirements.txt" + pip install --upgrade --requirement "$final_path/requirements.txt" python "$final_path/setup.py" develop