mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Adapt to PyMysql>=0.9 new requirements
Sadly, this will increase the install time. Ref https://github.com/spiral-project/ihatemoney/pull/357 Ref https://github.com/PyMySQL/PyMySQL/issues/697
This commit is contained in:
parent
992967e5c8
commit
04a8485709
2 changed files with 13 additions and 2 deletions
|
@ -11,7 +11,12 @@ INSTALL_DIR="/opt/yunohost/ihatemoney"
|
|||
|
||||
|
||||
install_apt_dependencies() {
|
||||
ynh_install_app_dependencies python3-virtualenv supervisor virtualenv
|
||||
ynh_install_app_dependencies \
|
||||
python3-dev \
|
||||
python3-virtualenv \
|
||||
libssl-dev \
|
||||
supervisor \
|
||||
virtualenv
|
||||
}
|
||||
|
||||
create_unix_user() {
|
||||
|
@ -28,6 +33,9 @@ create_system_dirs() {
|
|||
|
||||
init_virtualenv () {
|
||||
sudo virtualenv /opt/yunohost/ihatemoney/venv --python /usr/bin/python3
|
||||
# PyMySQL → cryptography → setuptools>=18.5
|
||||
# Required on Jessie, Stretch has setuptools>=18.5
|
||||
/opt/yunohost/ihatemoney/venv/bin/pip install 'setuptools>=18.5'
|
||||
}
|
||||
|
||||
configure_nginx () {
|
||||
|
|
|
@ -62,7 +62,10 @@ create_unix_user
|
|||
|
||||
# Prepare venv
|
||||
init_virtualenv
|
||||
sudo /opt/yunohost/ihatemoney/venv/bin/pip install 'gunicorn>=19.3.0' PyMySQL 'ihatemoney>=2,<3'
|
||||
sudo /opt/yunohost/ihatemoney/venv/bin/pip install \
|
||||
'gunicorn>=19.3.0' \
|
||||
'PyMySQL>=0.9,<0.10' \
|
||||
'ihatemoney>=2,<3' \
|
||||
|
||||
create_system_dirs
|
||||
|
||||
|
|
Loading…
Reference in a new issue