[SCM] pyliblo/master: Tune rules file to build python3 too.
mira-guest at users.alioth.debian.org
mira-guest at users.alioth.debian.org
Fri Aug 9 01:39:17 UTC 2013
The following commit has been merged in the master branch:
commit f649e7a6b48e5dbec9a395ef827b0f12c6642f4b
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date: Fri Aug 9 02:22:38 2013 +0200
Tune rules file to build python3 too.
diff --git a/debian/rules b/debian/rules
index 83739e0..1e7af9f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,22 @@
#!/usr/bin/make -f
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
%:
- dh $@ --with python2
+ dh $@ --with python2,python3
+
+build-python%:
+ python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+ dh_auto_build
+
+install-python%:
+ python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+ dh_auto_install
override_dh_installchangelogs:
dh_installchangelogs NEWS
--
pyliblo packaging
More information about the pkg-multimedia-commits
mailing list