Jimmy Monin 2017-11-23 22:57:52 +01:00
parent e71e417863
commit f59da0dcbc
2 changed files with 3 additions and 2 deletions

View File

@ -94,7 +94,7 @@ ynh_setup_source "$final_path"
#=================================================
virtualenv --system-site-packages "$final_path"
bash -c "source $final_path/bin/activate && pip install --requirement $final_path/requirements-ynh.txt"
bash -c "source $final_path/bin/activate && pip install -U pip setuptools && pip install --requirement $final_path/requirements-ynh.txt"
#=================================================
# CONFIGURE SEARX

View File

@ -93,8 +93,9 @@ ynh_system_user_create $app
# UPGRADE SEARX IN ITS VIRTUALENV
#=================================================
rm -r $final_path/lib/python2.7/site-packages/{pip,setuptools} $final_path/lib/python2.7/site-packages/setuptools-* $final_path/lib/python2.7/site-packages/pip-*
virtualenv --system-site-packages "$final_path"
bash -c "source $final_path/bin/activate && pip install --requirement $final_path/requirements-ynh.txt --upgrade"
bash -c "source $final_path/bin/activate && pip install -U pip setuptools && pip install --requirement $final_path/requirements-ynh.txt --upgrade"
#=================================================
# CONFIGURE SEARX