User Tools

Site Tools


public:home_assistant-docker-build-wheels

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:home_assistant-docker-build-wheels [2026/11/03 12:45] – [Krok 2: Spuštění armv7 prostředí a kompilace] lukaspublic:home_assistant-docker-build-wheels [2026/11/11 13:04] (current) – lukas
Line 1: Line 1:
 +
 +====== Running HA ======
 +Build virt enviroment(not need its already done):
 +<code>
 +python3.14 -m venv ~/ha-venv
 +</code>
 +Open enviroment
 +<code>
 +source ~/ha-venv/bin/activate
 +</code>
 +Install HA(done):
 +<code>
 +python -m pip install --no-index --find-links=/home/lukas/HA_core/armv7_wheels homeassistant==2026.11.0
 +</code>
 +Install HA(done, maybe this is needed instead of the previous start of line):
 +<code>
 +~/ha-venv/bin/python -m pip install 
 +</code>
 +Run the HA:
 +<code>
 +~/ha-venv/bin/hass -c /usr/share/hassio/homeassistant
 +</code>
 +
 +====== Running container prepared in previous steps ======
 +
 +<code>
 +docker start -ai gifted_elion
 +</code>
 +Run the building of wheels:
 +<code>
 +TMPDIR="/usr/tmp" uv run --with pip python -m pip wheel -r requirements_all.txt --wheel-dir=/work/armv7_wheels
 +</code>
 +
 ====== Krok 1: Příprava x64 stroje (Hostitel) ====== ====== Krok 1: Příprava x64 stroje (Hostitel) ======
  
Line 13: Line 46:
 <code> <code>
 # 1. Vstup do emulovaného ARMv7 prostředí s Pythonem 3.14 # 1. Vstup do emulovaného ARMv7 prostředí s Pythonem 3.14
-sudo docker run --rm -it \+sudo docker run -it \
   --platform linux/arm/v7 \   --platform linux/arm/v7 \
   -v "$(pwd)":/work \   -v "$(pwd)":/work \
   -w /work \   -w /work \
-  arm32v7/python:3.14-rc-slim bash+  arm32v7/python:3.14-slim bash
 </code> </code>
  
Line 28: Line 61:
   libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \   libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \
   libswscale-dev libswresample-dev libavfilter-dev ffmpeg \   libswscale-dev libswresample-dev libavfilter-dev ffmpeg \
-  libgammu-dev curl git cargo rustc+  libgammu-dev curl git cmake gfortran libopenblas-dev \ 
 +   liblapack-dev 
 +   
 +  sudo mount -o remount,size=10G /tmp 
 +  df -h /tmp 
 +   
 +   
 +  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh 
 +  sh rustup-init.sh 
 + 
 +  source "$HOME/.cargo/env" 
 +  rustup update stable 
 +  rustc --version 
  
 # 3. Instalace ultra rychlého správce balíčků 'uv' # 3. Instalace ultra rychlého správce balíčků 'uv'
public/home_assistant-docker-build-wheels.1793709943.txt.gz · Last modified: by lukas