mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Fix
This commit is contained in:
parent
04f69bc521
commit
8b2a3b9fd7
1 changed files with 35 additions and 35 deletions
|
@ -100,14 +100,14 @@ myynh_install_dependencies () {
|
||||||
MY_PYTHON="python3"
|
MY_PYTHON="python3"
|
||||||
else
|
else
|
||||||
# Either python already built or to build
|
# Either python already built or to build
|
||||||
ynh_print_info --message="Installing additional dependencies..."
|
|
||||||
PKG_DEPENDENCIES="${PKG_DEPENDENCIES} tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libbz2-dev libexpat1-dev liblzma-dev wget tar"
|
|
||||||
ynh_install_app_dependencies "${PKG_DEPENDENCIES}"
|
|
||||||
if [ $(myynh_version_compare $PY_BUILT_VERSION $python) -le 1 ]; then
|
if [ $(myynh_version_compare $PY_BUILT_VERSION $python) -le 1 ]; then
|
||||||
# Built >= Required
|
# Built >= Required
|
||||||
ynh_print_info --message="Using already used python3 built version..."
|
ynh_print_info --message="Using already used python3 built version..."
|
||||||
MY_PYTHON="/usr/local/bin/python${PY_BUILT_VERSION:0:3}"
|
MY_PYTHON="/usr/local/bin/python${PY_BUILT_VERSION:0:3}"
|
||||||
else
|
else
|
||||||
|
ynh_print_info --message="Installing additional dependencies to build python..."
|
||||||
|
PKG_DEPENDENCIES="${PKG_DEPENDENCIES} tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libbz2-dev libexpat1-dev liblzma-dev wget tar"
|
||||||
|
ynh_install_app_dependencies "${PKG_DEPENDENCIES}"
|
||||||
# APT < Minimal & Actual < Minimal => Build & install Python into /usr/local/bin
|
# APT < Minimal & Actual < Minimal => Build & install Python into /usr/local/bin
|
||||||
ynh_print_info --message="Building python (may take a while)..."
|
ynh_print_info --message="Building python (may take a while)..."
|
||||||
# Store current direcotry
|
# Store current direcotry
|
||||||
|
|
Loading…
Reference in a new issue