@@ -21,12 +21,13 @@ _jukebox_core_install_os_dependencies() {
2121 --allow-change-held-packages
2222}
2323
24- _jukebox_core_build_and_install_lgpio () {
24+ _jukebox_core_build_and_install_lg () {
2525 local tmp_path=" ${HOME_PATH} /tmp"
2626 local lg_filename=" lg"
2727 local lg_zip_filename=" ${lg_filename} .zip"
2828
29- sudo apt-get -y install swig unzip python3-dev python3-setuptools
29+ # always build lg and lgpio from source as pypi wheels are incomplete (armv6, python3.13) or broken (bullseye)
30+ # build needs apt packages "swig python3-dev"
3031 mkdir -p " ${tmp_path} " && cd " ${tmp_path} " || exit_on_error
3132 download_from_url " http://abyz.me.uk/lg/${lg_zip_filename} " " ${lg_zip_filename} "
3233 unzip ${lg_zip_filename} || exit_on_error
@@ -47,14 +48,9 @@ _jukebox_core_install_python_requirements() {
4748 # Remove excluded libs, if installed - see https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/2470
4849 pip uninstall -y -r " ${INSTALLATION_PATH} " /requirements-excluded.txt
4950
50- # prepare lgpio build for bullseye as the binaries are broken
51- local pip_install_options=" "
52- if [ " $( is_debian_version_at_least 12) " = false ]; then
53- _jukebox_core_build_and_install_lgpio
54- pip_install_options=" --no-binary=lgpio"
55- fi
51+ _jukebox_core_build_and_install_lg
5652
57- pip install --no-cache-dir -r " ${INSTALLATION_PATH} /requirements.txt" ${pip_install_options}
53+ pip install --no-cache-dir -r " ${INSTALLATION_PATH} /requirements.txt"
5854}
5955
6056_jukebox_core_configure_pulseaudio () {
0 commit comments