[Pkg-ganeti-devel] [ganeti] 11/29: Byte-compile the python code in /usr/share/ganeti
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Fri Mar 7 10:15:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository ganeti.
commit 5dd75a9736af4920c807bde8f9716614e46d6099
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date: Thu Feb 27 16:10:29 2014 +0200
Byte-compile the python code in /usr/share/ganeti
/usr/share/ganeti/VER/ganeti is outside the default dh_python2 search
path, so we have to override dh_python2 to specify it.
---
debian/rules | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 889d942..67827cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -78,6 +78,12 @@ override_dh_install-indep:
touch $(CURDIR)/debian/python-ganeti-rapi/usr/share/pyshared/ganeti/__init__.py
touch $(CURDIR)/debian/python-ganeti-rapi/usr/share/pyshared/ganeti/rapi/__init__.py
+override_dh_python2:
+ dh_python2
+
+ # /usr/share/ganeti/<VER> is not in the default search path of dh_python2
+ dh_python2 -pganeti-$(VER) usr/share/ganeti/$(VER)
+
override_dh_installinit:
dh_installinit --error-handler=true -i -- defaults 20 80
@@ -91,4 +97,4 @@ override_dh_auto_test:
.PHONY: override_dh_auto_configure override_dh_auto_clean override_dh_auto_build \
override_dh_installinit override_dh_install-indep override_dh_sphinxdoc-arch \
- override_dh_auto_test genfiles
+ override_dh_auto_test override_dh_python2 genfiles
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git
More information about the Pkg-ganeti-devel
mailing list