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

Merge pull request #34 from YunoHost-Apps/New_pip_install

New pip install - get-pip.py
This commit is contained in:
Krakinou 2020-05-06 22:46:45 +02:00 committed by GitHub
commit db18509592
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 1 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
PKG_DEPENDENCIES="sqlite3 python-dev libldap2-dev libsasl2-dev python3-pip imagemagick" PKG_DEPENDENCIES="sqlite3 libldap2-dev libsasl2-dev python3-dev imagemagick"
#PKG_DEPENDENCIES="sqlite3 python3-pip imagemagick" #PKG_DEPENDENCIES="sqlite3 python3-pip imagemagick"
DOSSIER_MEDIA=/home/yunohost.multimedia DOSSIER_MEDIA=/home/yunohost.multimedia
LOG_FILE=/var/log/$app/$app.log LOG_FILE=/var/log/$app/$app.log

View file

@ -94,6 +94,10 @@ ynh_setup_source "$final_path"
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=50 ynh_script_progression --message="Installing pip requirements..." --weight=50
pip3 install --no-cache-dir --target $final_path/vendor -r $final_path/requirements.txt pip3 install --no-cache-dir --target $final_path/vendor -r $final_path/requirements.txt

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