From a696d7936360387a58d95f3ddd2f6e89dd79e420 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 30 Dec 2024 18:56:22 +0700 Subject: [PATCH] v9.10 - DietPi-Software | Home Assistant: Work around incompatible dependencies on ARMv6 and RISC-V --- dietpi/dietpi-software | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index a271c24c4a..69d61240b4 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -11440,6 +11440,13 @@ _EOF_ G_EXEC mkdir -p "$ha_home/.pip" G_EXEC eval "echo -e '[global]\nno-cache-dir=true' > '$ha_home/.pip/pip.conf'" + # ARMv6/RISC-V: Work around incompatible latest maturin version with currently declared orjson v3.10.12 dependency: https://github.com/MichaIng/DietPi/issues/7329 + if (( $G_HW_ARCH == 1 || $G_HW_ARCH == 11 )) + then + G_EXEC eval "echo 'constraint=$ha_home/.pip/constraints.txt' >> '$ha_home/.pip/pip.conf'" + G_EXEC eval "echo 'maturin==1.7.8' > '$ha_home/.pip/constraints.txt'" + fi + # Generate script to activate pyenv: This must be sourced from the originating shell, hence it does not require execute permissions. echo "#!/bin/dash if [ \$(whoami) != '$ha_user' ]; then