1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ffsync_ynh.git synced 2024-09-03 18:26:38 +02:00

Fix virtualenv setup

This commit is contained in:
Josué Tille 2019-02-12 20:15:04 +01:00
parent 699d7553c5
commit 7d88c60ed1
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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