1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bazarr_ynh.git synced 2024-09-03 18:06:27 +02:00

Merge pull request #3 from YunoHost-Apps/fix-python-call

Use major version for Python call
This commit is contained in:
tituspijean 2022-02-04 23:34:01 +01:00 committed by GitHub
commit 9162cdd4cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 11 deletions

View file

@ -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

View file

@ -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

View file

@ -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