1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

Upgrade & Restore script via get-pip.py

This commit is contained in:
Krakinou 2020-05-06 20:29:23 +02:00
parent 15b5b01c3b
commit 2c93805209
2 changed files with 9 additions and 0 deletions

View file

@ -86,6 +86,11 @@ chown -R $app: $final_path
# Define and install dependencies # Define and install dependencies
ynh_script_progression --message="Reinstalling dependencies..." --weight=15 ynh_script_progression --message="Reinstalling dependencies..." --weight=15
ynh_install_app_dependencies $PKG_DEPENDENCIES ynh_install_app_dependencies $PKG_DEPENDENCIES
#use latest version of pip as per documentation in https://github.com/pypa/get-pip
#cannot use helper as maintaining the checksum would be a pain in the a***
curl https://bootstrap.pypa.io/get-pip.py | python3
#pip package not required as already in app directory #pip package not required as already in app directory
#pip install --target $final_path/vendor -r $final_path/requirements.txt #pip install --target $final_path/vendor -r $final_path/requirements.txt

View file

@ -132,6 +132,10 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Installing package dependencies..." --weight=15 ynh_script_progression --message="Installing package dependencies..." --weight=15
ynh_install_app_dependencies $PKG_DEPENDENCIES ynh_install_app_dependencies $PKG_DEPENDENCIES
#use latest version of pip as per documentation in https://github.com/pypa/get-pip
#cannot use helper as maintaining the checksum would be a pain in the a***
curl https://bootstrap.pypa.io/get-pip.py | python3
ynh_script_progression --message="Installing pip requirements ..." --weight=30 ynh_script_progression --message="Installing pip requirements ..." --weight=30
pip3 install --no-cache-dir --upgrade --target $final_path/vendor -r $final_path/requirements.txt pip3 install --no-cache-dir --upgrade --target $final_path/vendor -r $final_path/requirements.txt