diff --git a/debian/control b/debian/control index 85cc62c..83a70d0 100644 --- a/debian/control +++ b/debian/control @@ -26,9 +26,18 @@ Depends: ${python3:Depends}, python3-cherrypy3, python3-paho-mqtt, python3-psutil, - python3-jwt + python3-jwt, + python3-pip, + python3-rrdtool, + libffi-dev, + jq +Recommends: python3-periphery, + python3-spidev Description: PyMC Repeater Daemon A mesh networking repeater daemon for LoRa devices. . This package provides the pymc-repeater service for managing mesh network repeater functionality with a web interface. + . + Note: This package will install pymc_core, cherrypy-cors, and ws4py + from PyPI during postinst as they are not available in Debian repos. diff --git a/debian/pymc-repeater.postinst b/debian/pymc-repeater.postinst index 0b59d96..dc4f967 100755 --- a/debian/pymc-repeater.postinst +++ b/debian/pymc-repeater.postinst @@ -35,8 +35,19 @@ case "$1" in # Install pymc_core from PyPI if not already installed if ! python3 -c "import pymc_core" 2>/dev/null; then - echo "Installing pymc_core dependency from PyPI..." - python3 -m pip install --break-system-packages 'pymc_core[hardware]' || true + echo "Installing pymc_core[hardware] from PyPI..." + python3 -m pip install --break-system-packages 'pymc_core[hardware]>=1.0.7' || true + fi + + # Install packages not available in Debian repos + if ! python3 -c "import cherrypy_cors" 2>/dev/null; then + echo "Installing cherrypy-cors from PyPI..." + python3 -m pip install --break-system-packages 'cherrypy-cors==1.7.0' || true + fi + + if ! python3 -c "import ws4py" 2>/dev/null; then + echo "Installing ws4py from PyPI..." + python3 -m pip install --break-system-packages 'ws4py>=0.5.1' || true fi ;; esac