install the app via pip

Note: The generated "requirements.txt" doesn't contain the own package!
This commit is contained in:
JensDiemer 2020-12-29 11:32:44 +01:00
parent 05be4ad6b4
commit 577017d366
3 changed files with 4 additions and 2 deletions

View file

@ -27,8 +27,8 @@ log_file="${log_path}/django_ynh.log"
# dependencies used by the app # dependencies used by the app
pkg_dependencies="build-essential python3-dev python3-pip python3-venv git postgresql postgresql-contrib" pkg_dependencies="build-essential python3-dev python3-pip python3-venv git postgresql postgresql-contrib"
# django_ynh's version for PIP and settings file # To install/upgrade this project via pip:
django_ynh_version="0.8.2" pip_install_string="django_ynh==0.1.0"
#================================================= #=================================================
# Redis HELPERS # Redis HELPERS

View file

@ -114,6 +114,7 @@ chown -R "$app" "$final_path"
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 -r "$final_path/requirements.txt"
ynh_exec_as $app $final_path/venv/bin/pip install --upgrade "$pip_install_string"
) )
#================================================= #=================================================

View file

@ -98,6 +98,7 @@ chown -R "$app" "$final_path"
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 -r "$final_path/requirements.txt"
ynh_exec_as $app $final_path/venv/bin/pip install --upgrade "$pip_install_string"
) )
#================================================= #=================================================