From d8bc448f82251dbec2fa6f7ecc2dd322a210fad3 Mon Sep 17 00:00:00 2001 From: agessaman Date: Mon, 6 Jul 2026 11:23:25 -0700 Subject: [PATCH] fix: update dependencies for platform-specific installation of openhop_core --- README.md | 4 +++- pyproject.toml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2d73ed..daf59bc 100644 --- a/README.md +++ b/README.md @@ -520,7 +520,9 @@ pre-commit run --all-files ``` Hardware support for LoRa radio drivers is included in the base installation -through `openhop_core[hardware]`. +through `openhop_core[hardware]` on Linux. On other platforms (e.g. macOS), +`openhop_core` is installed without the hardware extra, since `spidev` and +similar packages only build against the Linux SPI kernel headers. Pre-commit hooks will automatically: - Lint and auto-fix Python issues with Ruff diff --git a/pyproject.toml b/pyproject.toml index ddcdf84..3a9043d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,8 @@ keywords = ["mesh", "networking", "lora", "repeater", "daemon", "iot"] dependencies = [ - "openhop_core[hardware] @ git+https://github.com/openhop-dev/openhop_core.git@dev", + "openhop_core[hardware] @ git+https://github.com/openhop-dev/openhop_core.git@dev ; sys_platform == 'linux'", + "openhop_core @ git+https://github.com/openhop-dev/openhop_core.git@dev ; sys_platform != 'linux'", "pyyaml>=6.0.0", "cherrypy>=18.0.0", "paho-mqtt>=1.6.0",