1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pyinventory_ynh.git synced 2024-09-03 20:16:09 +02:00

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
;)
This commit is contained in:
JensDiemer 2021-11-22 21:45:53 +01:00
parent fd23b8b0aa
commit 8d2ea6d519
3 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ chown -R "$app:" "$final_path"
source "${final_path}/venv/bin/activate" source "${final_path}/venv/bin/activate"
set -o nounset 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 --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"
) )
#================================================= #=================================================

View file

@ -96,7 +96,7 @@ python3 -m venv --upgrade "${final_path}/venv"
source "${final_path}/venv/bin/activate" source "${final_path}/venv/bin/activate"
set -o nounset 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 --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"
) )
#================================================= #=================================================

View file

@ -97,7 +97,7 @@ chown -R "$app:" "$final_path"
source "${final_path}/venv/bin/activate" source "${final_path}/venv/bin/activate"
set -o nounset 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 --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"
) )
#================================================= #=================================================