Fix install and upgrade
References: https://cryptography.io/en/latest/faq/#installing-cryptography-fails-with-invalid-environment-marker-python-version-3 https://stackoverflow.com/a/45631202
This commit is contained in:
parent
e71e417863
commit
f59da0dcbc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue