mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
Update dependencies in control file and enhance postinst script for PyPI package installations
This commit is contained in:
11
debian/control
vendored
11
debian/control
vendored
@@ -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.
|
||||
|
||||
15
debian/pymc-repeater.postinst
vendored
15
debian/pymc-repeater.postinst
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user