From 2064b8b286fff3683ef964db05161b2049c3a7a3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 1 Sep 2021 14:16:26 +0200 Subject: [PATCH 1/2] Try to upgrade pip as an attempt to fix borgbackup install error --- scripts/_common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4b57ac9..6e6b58d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,6 +16,7 @@ install_borg_with_pip () { fi if [ ! -d /opt/borg-env ]; then python3 -m venv /opt/borg-env + /opt/borg-env/bin/python /opt/borg-env/bin/pip install pip -U /opt/borg-env/bin/python /opt/borg-env/bin/pip install wheel ynh_print_info --message="Installing/compiling borg, this may take some time..." /opt/borg-env/bin/python /opt/borg-env/bin/pip install borgbackup[fuse]==$BORG_VERSION From 095826c7da62b658808fa6b0938de2a5bf326892 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 2 Sep 2021 22:45:49 +0200 Subject: [PATCH 2/2] Also upgrade setuptools before installing borg --- scripts/_common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 6e6b58d..c77a961 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -17,6 +17,7 @@ install_borg_with_pip () { if [ ! -d /opt/borg-env ]; then python3 -m venv /opt/borg-env /opt/borg-env/bin/python /opt/borg-env/bin/pip install pip -U + /opt/borg-env/bin/python /opt/borg-env/bin/pip install setuptools -U /opt/borg-env/bin/python /opt/borg-env/bin/pip install wheel ynh_print_info --message="Installing/compiling borg, this may take some time..." /opt/borg-env/bin/python /opt/borg-env/bin/pip install borgbackup[fuse]==$BORG_VERSION