Update dependencies in control file and enhance postinst script for PyPI package installations

This commit is contained in:
Lloyd
2026-02-02 10:49:54 +00:00
parent 9256ba9c35
commit 04ae4c9bf0
2 changed files with 23 additions and 3 deletions

11
debian/control vendored
View File

@@ -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.

View File

@@ -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