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

Attempt to fix the venv mess..

This commit is contained in:
Alexandre Aubin 2023-12-04 21:45:43 +01:00
parent fc00a235a6
commit c00d6bae5f
2 changed files with 11 additions and 14 deletions

View file

@ -33,14 +33,13 @@ ynh_add_nginx_config
#================================================= #=================================================
# INSTALL PYTHON DEPENDENCIES # INSTALL PYTHON DEPENDENCIES
#================================================= #=================================================
#REMOVEME? ynh_script_progression --message="Installing Python dependencies..." ynh_script_progression --message="Installing Python dependencies in venv..."
pushd $install_dir pushd $install_dir
python3 -m venv $install_dir/venv python3 -m venv venv
source $install_dir/venv/bin/activate venv/bin/pip install --upgrade pip
pip install --upgrade pip venv/bin/pip install --upgrade pyyaml
pip install --upgrade pyyaml venv/bin/pip install --pre pyload-ng[all]
pip install --pre pyload-ng[all]
popd popd
#================================================= #=================================================

View file

@ -28,16 +28,14 @@ ynh_add_nginx_config
#================================================= #=================================================
# INSTALL PYTHON DEPENDENCIES # INSTALL PYTHON DEPENDENCIES
#================================================= #=================================================
ynh_script_progression --message="Installing Python dependencies..." ynh_script_progression --message="Installing Python dependencies in venv..."
ynh_secure_remove --file="$install_dir/venv"
pushd $install_dir pushd $install_dir
python3 -m venv $install_dir/venv ynh_secure_remove venv
source $install_dir/venv/bin/activate python3 -m venv venv
pip install --upgrade pip venv/bin/pip install --upgrade pip
pip install --upgrade pyyaml venv/bin/pip install --upgrade pyyaml
pip install --pre pyload-ng[all] venv/bin/pip install --pre pyload-ng[all]
popd popd
#================================================= #=================================================