diff --git a/scripts/_common.sh b/scripts/_common.sh index 481859e..fcd492d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,15 +7,9 @@ python_version="3.7" python_major_version=$(echo $python_version | cut -d. -f1) -# dependencies used by the app -if [[ $YNH_ARCH != arm* ]] -then - pkg_dependencies="libxml2-dev libxslt1-dev python3-dev python3-libxml2 python3-lxml unrar-free ffmpeg libatlas-base-dev" -else - pkg_dependencies="libxml2-dev libxslt1-dev python3-dev python3-libxml2 python3-lxml unrar-free ffmpeg libatlas-base-dev" -fi - -pkg_dependencies+=" python${python_major_version}-venv" +pkg_dependencies="libxml2-dev libxslt1-dev unrar-free ffmpeg libatlas-base-dev" +pkg_dependencies+=" python${python_major_version}-libxml2 python${python_major_version}-lxml" +pkg_dependencies+=" python${python_major_version}-dev python${python_major_version}-venv" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index fa11a1b..f32f37b 100755 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,7 @@ ynh_script_progression --message="Installing Bazarr and its dependencies..." --w pushd $final_path # Initialize virtual environment - ynh_exec_as $app python${python_version} -m venv venv + ynh_exec_as $app python${python_major_version} -m venv venv ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt" popd diff --git a/scripts/upgrade b/scripts/upgrade index 71bf0f2..04654ca 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,7 +109,7 @@ ynh_script_progression --message="Upgrading Bazarr and its dependencies..." --we pushd $final_path # Initialize virtual environment - ynh_exec_as $app python${python_version} -m venv venv + ynh_exec_as $app python${python_major_version} -m venv venv ynh_exec_as $app $final_path/venv/bin/pip install -r "$final_path/requirements.txt" popd