mirror of
https://github.com/YunoHost-Apps/flohmarkt_ynh.git
synced 2024-09-03 18:36:30 +02:00
venv
This commit is contained in:
parent
719fbc9f2d
commit
d987dab990
1 changed files with 16 additions and 5 deletions
|
@ -43,12 +43,23 @@ chmod 750 "$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R "$app:$app" "$install_dir"
|
||||
|
||||
# @@ setup python environment for flohmarkt
|
||||
ynh_secure_remove "$data_dir/venv"
|
||||
python3 -m venv --without-pip "$data_dir/venv"
|
||||
# get flohmarkt
|
||||
ynh_setup_source --dest-dir="$install_dir"
|
||||
|
||||
# setup python environment for flohmarkt
|
||||
ynh_secure_remove "$install_dir/venv"
|
||||
python3 -m venv --without-pip "$install_dir/venv"
|
||||
|
||||
# install python dependencies
|
||||
(
|
||||
set +o nounset
|
||||
source "$install_dir/venv/bin/activate"
|
||||
set -o nounset
|
||||
set -x
|
||||
ynh_exec_as $app $data_dir/venv/bin/python3 -m ensurepip
|
||||
ynh_exec_as $app $data_dir/venv/bin/pip3 install -r "$install_dir/flohmarkt/requirements.txt"
|
||||
)
|
||||
|
||||
# @@ get git
|
||||
# @@ install python dependencies
|
||||
# @@ configure
|
||||
|
||||
# SETUP LOGROTATE
|
||||
|
|
Loading…
Add table
Reference in a new issue