From 533f8824bef74cb45adf68ddefce42dfb72e695a Mon Sep 17 00:00:00 2001 From: Jocelyn Delalande Date: Tue, 18 Dec 2018 19:23:09 +0100 Subject: [PATCH] Work around pip>10 bug with ihm<3.x See https://github.com/spiral-project/ihatemoney/pull/341 Inspired by #28 thanks @klorydryk :-). --- scripts/_common.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4b92e55..3ceba0f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -34,6 +34,11 @@ create_system_dirs() { init_virtualenv () { sudo virtualenv /opt/yunohost/ihatemoney/venv --python /usr/bin/python3 + + # Will no longer be necessary for ihm>=3.x + # https://github.com/spiral-project/ihatemoney/blob/master/CHANGELOG.rst#fixed + sudo /opt/yunohost/ihatemoney/venv/bin/pip install 'pip<10' + # PyMySQL → cryptography → setuptools>=18.5 # Required on Jessie, Stretch has setuptools>=18.5 /opt/yunohost/ihatemoney/venv/bin/pip install 'setuptools>=18.5'