[Python-modules-commits] r12615 - in packages/pyxmpp/trunk/debian (changelog rules)
bzed at users.alioth.debian.org
bzed at users.alioth.debian.org
Wed Apr 14 21:41:05 UTC 2010
Date: Wednesday, April 14, 2010 @ 21:41:02
Author: bzed
Revision: 12615
Update debian/rules to use python_distutils as buildsystem. Make sure
tests are being run. Clean build directory properly.
Modified:
packages/pyxmpp/trunk/debian/changelog
packages/pyxmpp/trunk/debian/rules
Modified: packages/pyxmpp/trunk/debian/changelog
===================================================================
--- packages/pyxmpp/trunk/debian/changelog 2010-04-14 19:39:01 UTC (rev 12614)
+++ packages/pyxmpp/trunk/debian/changelog 2010-04-14 21:41:02 UTC (rev 12615)
@@ -4,8 +4,10 @@
* Adding Homepage and Vcs-* fields to debian/control.
* Bumping Standards-Version to 3.8.4, no changes needed.
* Required Python version is 2.6 now.
+ * Update debian/rules to use python_distutils as buildsystem. Make sure
+ tests are being run. Clean build directory properly.
- -- Bernd Zeimetz <bzed at debian.org> Wed, 14 Apr 2010 21:37:24 +0200
+ -- Bernd Zeimetz <bzed at debian.org> Wed, 14 Apr 2010 23:39:03 +0200
pyxmpp (1.0.1-1) unstable; urgency=low
Modified: packages/pyxmpp/trunk/debian/rules
===================================================================
--- packages/pyxmpp/trunk/debian/rules 2010-04-14 19:39:01 UTC (rev 12614)
+++ packages/pyxmpp/trunk/debian/rules 2010-04-14 21:41:02 UTC (rev 12615)
@@ -1,5 +1,18 @@
#!/usr/bin/make -f
+PYVERS := $(shell pyversions -rv 2>/dev/null)
+
%:
- dh $@
+ dh $@ --buildsystem=python_distutils
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ set -e; cd tests; \
+ for py in $(PYVERS); do \
+ PYTHONPATH=`find $(CURDIR)/build -mindepth 1 -maxdepth 1 -type d -name "lib.*-$$py"` python$$py all.py -v 2 ;\
+ done
+endif
+
+clean:
+ dh $@ --buildsystem=python_distutils
+ rm -rf build
More information about the Python-modules-commits
mailing list