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:
parent
ce2033f5e9
commit
3085b59412
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue