From f700180afb4f21272a694449fd6a65e14038bb47 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 22 Nov 2021 22:46:52 +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 5937ec3..3726d56 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 e01e2c7..3d645b5 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" ) #=================================================