From 4f126d6133b445c49bb2ba78b998d3d29d18fae2 Mon Sep 17 00:00:00 2001 From: Chuck Date: Fri, 15 May 2026 11:29:33 -0400 Subject: [PATCH] chore(deps): update rpi-rgb-led-matrix install for new scikit-build-core system The library migrated from 'make build-python' + 'pip install bindings/python' to a scikit-build-core + cmake build where the entire repo root is pip- installable via 'pip install .'. Update first_time_install.sh accordingly: - Remove the 'make build-python' step (target no longer exists) - Install directly from the repo root instead of bindings/python - Replace build deps: remove cython3/scons/python3-dev, add python-dev-is-python3 Co-Authored-By: Claude Sonnet 4.6 --- first_time_install.sh | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/first_time_install.sh b/first_time_install.sh index f2b777ba..89b3828e 100644 --- a/first_time_install.sh +++ b/first_time_install.sh @@ -271,7 +271,7 @@ apt_update # Install required system packages echo "Installing Python packages and dependencies..." -apt_install python3-pip python3-venv python3-dev python3-pil python3-pil.imagetk build-essential python3-setuptools python3-wheel cython3 scons cmake ninja-build +apt_install python3-pip python3-venv python-dev-is-python3 python3-pil python3-pil.imagetk build-essential python3-setuptools python3-wheel cmake ninja-build # Install additional system dependencies that might be needed echo "Installing additional system dependencies..." @@ -821,20 +821,13 @@ else fi pushd "$PROJECT_ROOT_DIR/rpi-rgb-led-matrix-master" >/dev/null - echo "Building rpi-rgb-led-matrix Python bindings..." - # Build the library first, then Python bindings - # The build-python target depends on the library being built - if ! make build-python; then - echo "✗ Failed to build rpi-rgb-led-matrix Python bindings" - echo " Make sure you have the required build tools installed:" - echo " sudo apt install -y build-essential python3-dev cython3 scons" - popd >/dev/null - exit 1 - fi - cd bindings/python - echo "Installing rpi-rgb-led-matrix Python package via pip..." + echo "Installing rpi-rgb-led-matrix Python package (scikit-build-core + cmake)..." + echo " Build deps required: python-dev-is-python3 cmake" + echo " This compiles C++ — may take 2-5 minutes on Pi 4/5..." if ! python3 -m pip install --break-system-packages .; then echo "✗ Failed to install rpi-rgb-led-matrix Python package" + echo " Ensure build tools are installed:" + echo " sudo apt install -y python-dev-is-python3 cmake build-essential" popd >/dev/null exit 1 fi