From 2dc87d7aa75b36ecf44b896e7ca682bdba92ef78 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Mon, 4 May 2020 13:32:00 +0200 Subject: [PATCH] Use get-pip.py --- scripts/_common.sh | 2 +- scripts/install | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b1f72ef..2ed04d7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,6 +1,6 @@ #!/bin/bash -PKG_DEPENDENCIES="sqlite3 python-dev libldap2-dev libsasl2-dev python3-pip imagemagick" +PKG_DEPENDENCIES="sqlite3 python-dev libldap2-dev libsasl2-dev imagemagick" #PKG_DEPENDENCIES="sqlite3 python3-pip imagemagick" DOSSIER_MEDIA=/home/yunohost.multimedia LOG_FILE=/var/log/$app/$app.log diff --git a/scripts/install b/scripts/install index 07fb946..d971e61 100755 --- a/scripts/install +++ b/scripts/install @@ -94,6 +94,10 @@ ynh_setup_source "$final_path" ynh_script_progression --message="Installing package dependencies..." --weight=15 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 pip3 install --no-cache-dir --target $final_path/vendor -r $final_path/requirements.txt