Modifies deb pkg building to include postinst script
stage-build now uses make instead of tox, to allow adding
postinst script.
Postinst script adds installation of dependencies through pip.
Adds missing MANIFEST and stdeb.cfg.
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I42849e0a3457745ad00a169128554cf3574bcb23
diff --git a/Makefile b/Makefile
index 410db79..e3e9dac 100644
--- a/Makefile
+++ b/Makefile
@@ -16,13 +16,9 @@
all: clean package
clean:
- rm -rf dist deb_dist .build osm_common-*.tar.gz osm_common.egg-info eggs
+ rm -rf dist deb_dist osm_common-*.tar.gz osm_common.egg-info .eggs
package:
python3 setup.py --command-packages=stdeb.command sdist_dsc
- cp python3-osm-common.postinst deb_dist/osm-common*/debian
- cd deb_dist/osm-common*/debian && echo "pymongo python3-pymongo" > py3dist-overrides
- # cd deb_dist/osm-common*/debian && echo "pip3 python3-pip" >> py3dist-overrides
+ cp debian/python3-osm-common.postinst deb_dist/osm-common*/debian
cd deb_dist/osm-common*/ && dpkg-buildpackage -rfakeroot -uc -us
- mkdir -p .build
- cp deb_dist/python3-osm-common*.deb .build/