summaryrefslogtreecommitdiffstats
path: root/debian/wheezy/dependencies/sip4-tqt/debian/rules
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-08-27 04:57:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-27 05:00:17 +0200
commit2d0d0ba99b507cab093962cb910ddc7dd4755c94 (patch)
tree25732cac7c5450d1df2efe47d153253bec8a83be /debian/wheezy/dependencies/sip4-tqt/debian/rules
parente59f9132f600c669c73885b0b58a715e6bfd03a6 (diff)
downloadtde-packaging-2d0d0ba99b507cab093962cb910ddc7dd4755c94.tar.gz
tde-packaging-2d0d0ba99b507cab093962cb910ddc7dd4755c94.zip
Switch to dh_python2 (or dh_pysupport as fallback) on Debian and Ubuntu
Diffstat (limited to 'debian/wheezy/dependencies/sip4-tqt/debian/rules')
-rwxr-xr-xdebian/wheezy/dependencies/sip4-tqt/debian/rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/wheezy/dependencies/sip4-tqt/debian/rules b/debian/wheezy/dependencies/sip4-tqt/debian/rules
index 2286739d5..9073bd22f 100755
--- a/debian/wheezy/dependencies/sip4-tqt/debian/rules
+++ b/debian/wheezy/dependencies/sip4-tqt/debian/rules
@@ -19,6 +19,9 @@ endif
PYTHONS := $(shell pyversions -vr debian/control)
+DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
+DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2 --no-dbg-cleaning,dh_pysupport)
+
-include /usr/share/python/python.mk
ifeq (,$(py_sitename))
py_sitename = site-packages
@@ -132,7 +135,7 @@ ifneq (,$(findstring -a, $(DH_OPTIONS)))
endif
dh_compress
dh_fixperms
- dh_pysupport
+ ${DH_PYTHON2}
dh_installdeb
dh_shlibdeps
dh_gencontrol