diff --git a/scripts/_common.sh b/scripts/_common.sh index 4f036c4..77d9566 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 # diff --git a/scripts/install b/scripts/install index 5e9417c..f2682c6 100644 --- a/scripts/install +++ b/scripts/install @@ -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 ) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1a7a952..38327ba 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 ) #=================================================