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:
commit
9162cdd4cc
3 changed files with 5 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue