1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/13ft_ynh.git synced 2024-09-03 18:06:03 +02:00

apt dependencies for python-venv

This commit is contained in:
lapineige 2022-12-18 23:24:24 +01:00 committed by GitHub
parent f15ca80242
commit f89d264df3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,21 +124,19 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# INSTALL APT DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing apt dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# INSTALL PYTHON DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing python dependencies..." --weight=1
### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package.
### Those deb packages will be installed as dependencies of this package.
### If you're not using this helper:
### - Remove the section "REMOVE DEPENDENCIES" in the remove script
### - Remove the variable "pkg_dependencies" in _common.sh
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
# ynh_install_app_dependencies $pkg_dependencies
pushd $final_path
python3 -m venv venv
venv/bin/pip install --upgrade pip