1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kresus_ynh.git synced 2024-09-03 19:36:10 +02:00

upgrade to python3

This commit is contained in:
Jean-Baptiste Holcroft 2019-11-24 15:28:40 +01:00
parent ce2033f5e9
commit 3085b59412
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
pkg_dependencies="dh-autoreconf python-pip python-dev python-lxml python-imaging virtualenv"
pkg_dependencies="dh-autoreconf python3-pip python3-dev python3-lxml python3-pillow virtualenv"
# Send an email to inform the administrator
#

View file

@ -109,14 +109,14 @@ ynh_install_nodejs 10
# Install weboob with pip
#=================================================
virtualenv --system-site-packages "${final_path}/venv"
virtualenv --python=python3 --system-site-packages "${final_path}/venv"
(
set +o nounset
source "${final_path}/venv/bin/activate"
set -o nounset
pip install --upgrade pip
pip install weboob html2text simplejson BeautifulSoup PyExecJS
pip install weboob html2text simplejson BeautifulSoup4 PyExecJS
)
#=================================================

View file

@ -115,14 +115,14 @@ ynh_install_nodejs 10
#=================================================
ynh_secure_remove "${final_path}/venv"
virtualenv --system-site-packages "${final_path}/venv"
virtualenv --python=python3 --system-site-packages "${final_path}/venv"
(
set +o nounset
source "${final_path}/venv/bin/activate"
set -o nounset
pip install --upgrade pip
pip install weboob html2text simplejson BeautifulSoup PyExecJS
pip install weboob html2text simplejson BeautifulSoup4 PyExecJS
)
#=================================================