From 3085b5941253535a50c820dc2a68d89465419d41 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Sun, 24 Nov 2019 15:28:40 +0100 Subject: [PATCH] upgrade to python3 --- scripts/_common.sh | 2 +- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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 ) #=================================================