Skip to content

dietpi-software: Home Assistant: switch from pyenv to uv#8020

Draft
MichaIng wants to merge 1 commit intodevfrom
ha-uv
Draft

dietpi-software: Home Assistant: switch from pyenv to uv#8020
MichaIng wants to merge 1 commit intodevfrom
ha-uv

Conversation

@MichaIng
Copy link
Owner

@MichaIng MichaIng commented Mar 15, 2026

Test installs: https://github.com/MichaIng/DietPi/actions/runs/23118345508

No ARMv6 support, since the uv Python mirror does not provide ARMv6 binaries. I couldn't find any 3rd party mirror which does so either, and uv cannot compile Python like pyenv. Probably an acceptable regression, since HA was probably never a joy on ARMv6 RPi models, neither to install (taking hours) nor to run. There are 4 cases among our dietpi-survey uploads, younger than 6 months, could be 30 overall when considering the 13% survey participants.

ARMv7 tests on GitHub aarch64 runners are difficult: It installs gnueabi instead of gnueabihf Python by default, but then fails to find/use it afterwards. uv seems to have issues identifying the architecture correctly when running armhf userland on aarch64 host CPU: astral-sh/uv#18509
EDIT: Solved upstream 👍. And the workaround for now is simple.
EDIT2: Fix released 🚀

And finally PyNaCl source builds fail with uv, while they work with pyenv and Debian system Python. Not sure of the underlying issue, but this looks related: python/cpython#145810
EDIT: Possible fix is in draft 👍.
EDIT2: Fix released 🚀 But it requires another uv release, since the available builds are a hardcoded list.

Removing the milestone until Home Assistant installs on ARMv7 and RISC-V work with uv.

@MichaIng MichaIng added this to the v10.2 milestone Mar 15, 2026
@MichaIng MichaIng removed this from the v10.2 milestone Mar 16, 2026
@MichaIng MichaIng marked this pull request as draft March 16, 2026 18:27
@MichaIng MichaIng force-pushed the ha-uv branch 11 times, most recently from b324738 to 886a699 Compare March 20, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant