mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
update module versions
This commit is contained in:
parent
47e36ab8f6
commit
e0d0a33778
1 changed files with 14 additions and 30 deletions
|
@ -16,47 +16,31 @@ pkg_dependencies="acl build-essential python3-dev python3-pip python3-venv git p
|
|||
python_version="$(python3 -V | cut -d' ' -f2 | cut -d. -f1-2)"
|
||||
|
||||
myynh_install() {
|
||||
# ynh_script_progression --message="Install / upgrade mopidy via pip..." --weight=8
|
||||
python3 -m venv "${final_path}/env"
|
||||
chown -R "$app" "$final_path"
|
||||
|
||||
#run source in a 'sub shell'
|
||||
#run source in a 'sub shell'
|
||||
(
|
||||
set +o nounset
|
||||
source "${final_path}/env/bin/activate"
|
||||
set -o nounset
|
||||
ynh_exec_as $app $final_path/env/bin/pip install --upgrade --no-cache-dir pip
|
||||
|
||||
# ynh_script_progression --message="Installing essentials..." --weight=17
|
||||
|
||||
# to make Gstreamer visible in Python environment
|
||||
$final_path/env/bin/python3 -m pip install vext
|
||||
$final_path/env/bin/python3 -m pip install --no-binary=:all: vext.gi
|
||||
|
||||
# install essential packages
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy==3.1.1
|
||||
|
||||
# patch -u $final_path/env/lib/python$python_version/site-packages/mopidy/__main__.py -i ../sources/patches/__main__.patch --forward
|
||||
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy==3.2.0
|
||||
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-local==3.2.1
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-MusicBox-Webclient==3.1.0
|
||||
# ynh_script_progression --message="Installing Mopidy-YouTube..." --weight=7
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-YouTube==3.2
|
||||
# ynh_script_progression --message="Installing Mopidy-YTMusic..." --weight=2
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-YTMusic==0.2.2
|
||||
# ynh_script_progression --message="Installing Mopidy-RadioNet..."
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-YouTube==3.3
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir mopidy-ytmusic==0.3.0
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-RadioNet==0.2.2
|
||||
# ynh_script_progression --message="Installing Mopidy-Podcast..."
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Podcast==3.0.0
|
||||
# ynh_script_progression --message="Installing Mopidy-Podcast-iTunes..." --weight=2
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Podcast-iTunes==3.0.0
|
||||
# ynh_script_progression --message="Installing Mopidy-SoundCloud..." --weight=6
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-SoundCloud
|
||||
|
||||
# set +o nounset
|
||||
# source "${final_path}/env/bin/deactivate"
|
||||
# set -o nounset
|
||||
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-SoundCloud==3.0.1
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue