Skip to content

Commit

Permalink
v9.10
Browse files Browse the repository at this point in the history
- DietPi-Software | Home Assistant: Work around incompatible dependencies on ARMv6 and RISC-V
  • Loading branch information
MichaIng committed Dec 30, 2024
1 parent 5aa5488 commit 990d425
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -11438,6 +11438,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
Expand Down

0 comments on commit 990d425

Please sign in to comment.