refactor: make libffi-dev conditional for armhf (32-bit ARM) only
Only install libffi-dev on armhf (32-bit ARM) systems where cffi needs to compile from source. x86_64 and arm64 have pre-built cffi wheels available, so they don't need the development headers. Changes: - install.sh: Detect architecture and conditionally add libffi-dev for armhf - test_installer.sh: Show libffi-dev in output only for armhf systems - test.yml: Update ARM CI summary to reflect conditional dependency This reduces unnecessary dependencies on x86_64 and arm64 systems while maintaining full compatibility with 32-bit Raspberry Pi devices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2a1ab3fe27
commit
9aeee07e69
3 changed files with 31 additions and 5 deletions
|
|
@ -205,7 +205,14 @@ echo "Installation summary:"
|
|||
echo " • install.sh is fully self-contained (handles all prerequisites)"
|
||||
echo " • Reticulum Network Stack: installed via pip"
|
||||
if [ "$OS_TYPE" = "debian" ]; then
|
||||
echo " • System packages: python3, python3-pip, git, python3-gi, python3-dbus, python3-cairo, bluez, libffi-dev"
|
||||
# Detect architecture for platform-specific package list
|
||||
ARCH=$(dpkg --print-architecture 2>/dev/null || echo "unknown")
|
||||
if [[ "$ARCH" == "armhf" ]]; then
|
||||
echo " • System packages: python3, python3-pip, git, python3-gi, python3-dbus, python3-cairo, bluez, libffi-dev"
|
||||
echo " • Note: libffi-dev included for 32-bit ARM cffi compilation"
|
||||
else
|
||||
echo " • System packages: python3, python3-pip, git, python3-gi, python3-dbus, python3-cairo, bluez"
|
||||
fi
|
||||
echo " • Pip packages: rns, bleak, bluezero"
|
||||
echo " • Install method: System packages (no compilation)"
|
||||
echo " • Installation time: < 1 minute"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue