From 92f8c45db62b1a5f569be677c4abde3c0be63b5d Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 22 Nov 2021 23:41:01 +0100 Subject: [PATCH] Fix #15 by use pip with "--prefer-binary" See also: https://matplotlib.org/stable/users/installing/index.html --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- test_requirements.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 1fec9a0..d1ffc86 100755 --- a/scripts/install +++ b/scripts/install @@ -113,7 +113,7 @@ chown -R "$app:" "$final_path" source "${final_path}/venv/bin/activate" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade wheel pip - ynh_exec_as $app $final_path/venv/bin/pip install --no-deps -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps --prefer-binary -r "$final_path/requirements.txt" ) #================================================= diff --git a/scripts/restore b/scripts/restore index 498e617..78760ee 100755 --- a/scripts/restore +++ b/scripts/restore @@ -96,7 +96,7 @@ python3 -m venv "${final_path}/venv" source "${final_path}/venv/bin/activate" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade wheel pip - ynh_exec_as $app $final_path/venv/bin/pip install --no-deps -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps --prefer-binary -r "$final_path/requirements.txt" ) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 4ecde84..8545ff7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -97,7 +97,7 @@ chown -R "$app:" "$final_path" source "${final_path}/venv/bin/activate" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade wheel pip - ynh_exec_as $app $final_path/venv/bin/pip install --no-deps -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps --prefer-binary -r "$final_path/requirements.txt" ) #================================================= diff --git a/test_requirements.sh b/test_requirements.sh index e7ececf..14b439e 100755 --- a/test_requirements.sh +++ b/test_requirements.sh @@ -14,4 +14,4 @@ python3 -m venv "${final_path}/venv" source "${final_path}/venv/bin/activate" $final_path/venv/bin/pip install --upgrade wheel pip -$final_path/venv/bin/pip install --no-deps -r "./conf/requirements.txt" +$final_path/venv/bin/pip install --no-deps --prefer-binary -r "./conf/requirements.txt"