We run the official install script within a virtual environment to install Home Assistant.
There indeed all dependencies are build from source, including Python...
I already recognized this and I am not sure, if it wasn't possible to skip all this virtual environment abstraction and just run the script in current shell, using simple Python APT packages.
I will have a look into this, but most likely it will not make it into DietPi v6.20, which is already in Beta and the issue is not critical, but only leads to install taking a long time.
EDIT: I opened an issue on GitHub:
https://github.com/Fourdee/DietPi/issues/2418
Indeed we run the installer within several abstraction layers, so I hope we can reduce them to speed up install. However most important thing would be to install it outside of
pyenv and instead use default Python APT package.