2020-06-16, 06:50 PM
(2020-06-10, 07:53 AM)glowntiger Wrote: I integrate the pigpio in the next app version.
@Sailoog,
is it possible to do this with the intallation of the deb package? I have add the dependences to the control file... But only get an info after install that the dependence is missing?
Or is the best way to do this in the postinstallation script?
Thanks
Thomas
Do not add dependencies to the debian package in control file because dpkg does not install them.
Use the post install script,there you can install dependencies and enable services:
Code:
print(_('Installing dependencies...'))
try:
subprocess.call(['apt', '-y', 'install', 'mypackage'])
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))
try:
print(_('Enabling services...'))
subprocess.call(['systemctl', 'enable', 'myservice'])
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))