From 96899cdf89463b884b16a3c0bc2f5b698c4c221c Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 13 Nov 2017 10:52:57 -0200 Subject: [pkg] make debian package report the correct version The Soledad python source currently makes use of versioneer to calculate versions dynamically and hardcode versions upon creation of the python package. Unfortunatlly, this procedure does not behave well with debian packaging, and we need to manually generate/replace the _version.py file so the code that ends up in the debian package reports the correct version of the software. This commit adds a script to replace the _version.py file with a static one and rules during packaging to run that script during preparation stage of debian helper. --- debian/rules | 1 + 1 file changed, 1 insertion(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index ee6e33e2..99d21fe1 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,7 @@ NAME=soledad-server override_dh_prep: (cd ./docs/man; for src in *.rst; do tgt=$$(basename $${src} .rst); rst2man $${src} $${tgt}; done) + PYTHONPATH=./ ./scripts/packaging/replace-version-file.py dh_prep override_dh_installinit: -- cgit v1.2.3