diff --git a/scripts/restore b/scripts/restore index eb2caed..bdcbcac 100755 --- a/scripts/restore +++ b/scripts/restore @@ -86,6 +86,11 @@ chown -R $app: $final_path # Define and install dependencies ynh_script_progression --message="Reinstalling 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 + #pip package not required as already in app directory #pip install --target $final_path/vendor -r $final_path/requirements.txt diff --git a/scripts/upgrade b/scripts/upgrade index d59b54b..d330989 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -132,6 +132,10 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then 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=30 pip3 install --no-cache-dir --upgrade --target $final_path/vendor -r $final_path/requirements.txt