[Python-modules-commits] r10232 - in packages/inotifyx/trunk/debian (rules)

rrs-guest at users.alioth.debian.org rrs-guest at users.alioth.debian.org
Fri Oct 30 09:05:17 UTC 2009


    Date: Friday, October 30, 2009 @ 09:05:06
  Author: rrs-guest
Revision: 10232

Merge branch 'master' into local-svn/trunk

Modified:
  packages/inotifyx/trunk/debian/rules

Modified: packages/inotifyx/trunk/debian/rules
===================================================================
--- packages/inotifyx/trunk/debian/rules	2009-10-30 00:31:09 UTC (rev 10231)
+++ packages/inotifyx/trunk/debian/rules	2009-10-30 09:05:06 UTC (rev 10232)
@@ -3,32 +3,43 @@
 PKG_NAME=inotifyx
 PKG_VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
 
+PYVERS=$(shell pyversions -vr)
+
 -include /usr/share/python/python.mk
 
 get-orig-source:
 	uscan --force-download --rename --download-version=$(PKG_VER) --destdir=.
 
-build:
+build: $(PYVERS:%=build-python%)
+	touch $@
+
+build-python%:
 	dh_testdir
-	python setup.py build
+	python$* setup.py build
 	touch $@
 
-clean: 
+clean: $(PYVERS:%=clean-python%)
+	touch $@
+
+clean-python%: 
 	dh_testdir
 	dh_testroot
 
-	python setup.py clean --all
+	python$* setup.py clean --all
 	[ ! -e html ] || rm -rf html
 
 	dh_clean 
 
-install: build
+install: $(PYVERS:%=install-python%)
+	touch $@
+
+install-python%: build
 	dh_testdir
 	dh_testroot
 	dh_prep  
 	dh_installdirs
 
-	python setup.py install --root $(CURDIR)/debian/python-inotifyx ${py_setup_install_args}
+	python$* setup.py install --root $(CURDIR)/debian/python-inotifyx ${py_setup_install_args}
 	epydoc $(CURDIR)/debian/python-inotifyx/usr/lib/python*/*-packages/inotifyx.py
 
 binary-indep: build install




More information about the Python-modules-commits mailing list