From 0e3bc009b90b52adef92080966ec2953b52dde1f Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 3 Jul 2020 06:35:42 +0000 Subject: [PATCH] fix grpclib instalation via debian package post-install script Change-Id: I18a511b9d639072b763f7d7071c61c30915c9718 Signed-off-by: tierno --- Makefile | 4 ++-- debian/python3-osm-lcm.postinst | 12 +++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 0ee3ddd..cdbb183 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,8 @@ clean: package: python3 setup.py --command-packages=stdeb.command sdist_dsc - # cp debian/python3-osm-lcm.postinst deb_dist/osm-lcm*/debian - cd deb_dist/osm-lcm*/debian && echo "osm-common python3-osm-common" > py3dist-overrides + cp debian/python3-osm-lcm.postinst deb_dist/osm-lcm*/debian + # cd deb_dist/osm-lcm*/debian && echo "osm-common python3-osm-common" > py3dist-overrides # cd deb_dist/osm-lcm*/debian && echo "pip3 python3-pip" >> py3dist-overrides cd deb_dist/osm-lcm*/ && dpkg-buildpackage -rfakeroot -uc -us diff --git a/debian/python3-osm-lcm.postinst b/debian/python3-osm-lcm.postinst index 4ee0a2e..8a7082c 100755 --- a/debian/python3-osm-lcm.postinst +++ b/debian/python3-osm-lcm.postinst @@ -18,13 +18,11 @@ ## echo "POST INSTALL OSM-LCM" -# Currently it is not needed pip3 installation -# echo "Installing python dependencies via pip..." -# python3 -m pip install -U pip -# python3 -m pip install --user aiokafka +echo "Installing python dependencies grpcio-tools grpclib via pip..." +echo +python3 -m pip install -U pip python3 -m pip install grpcio-tools grpclib -#Creation of log folder -mkdir -p /var/log/osm +# Creation of log folder +# mkdir -p /var/log/osm -# systemctl enable osm-lcm.service -- 2.25.1