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:
parent
fc00a235a6
commit
c00d6bae5f
2 changed files with 11 additions and 14 deletions
|
@ -33,14 +33,13 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
# INSTALL PYTHON DEPENDENCIES
|
||||
#=================================================
|
||||
#REMOVEME? ynh_script_progression --message="Installing Python dependencies..."
|
||||
ynh_script_progression --message="Installing Python dependencies in venv..."
|
||||
|
||||
pushd $install_dir
|
||||
python3 -m venv $install_dir/venv
|
||||
source $install_dir/venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install --upgrade pyyaml
|
||||
pip install --pre pyload-ng[all]
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
venv/bin/pip install --upgrade pyyaml
|
||||
venv/bin/pip install --pre pyload-ng[all]
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -28,16 +28,14 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
# INSTALL PYTHON DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing Python dependencies..."
|
||||
|
||||
ynh_secure_remove --file="$install_dir/venv"
|
||||
ynh_script_progression --message="Installing Python dependencies in venv..."
|
||||
|
||||
pushd $install_dir
|
||||
python3 -m venv $install_dir/venv
|
||||
source $install_dir/venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install --upgrade pyyaml
|
||||
pip install --pre pyload-ng[all]
|
||||
ynh_secure_remove venv
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
venv/bin/pip install --upgrade pyyaml
|
||||
venv/bin/pip install --pre pyload-ng[all]
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue