From 8d2ea6d519aa933495dfa8a8fc46165295f46884 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 22 Nov 2021 21:45:53 +0100 Subject: [PATCH] Use pip install with "--no-deps" Work-a-round for https://github.com/pypa/pip/issues/9644 Any generally a good idea, because our "requirements.txt" should always contain all needed packages ;) --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 364d932..01024fd 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 pip - ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps -r "$final_path/requirements.txt" ) #================================================= diff --git a/scripts/restore b/scripts/restore index ffb0748..8ebdb84 100755 --- a/scripts/restore +++ b/scripts/restore @@ -96,7 +96,7 @@ python3 -m venv --upgrade "${final_path}/venv" source "${final_path}/venv/bin/activate" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade pip - ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps -r "$final_path/requirements.txt" ) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 93f08a3..708e3ec 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 pip - ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps -r "$final_path/requirements.txt" ) #=================================================