[Python-modules-commits] r13130 - in packages/flask/trunk/debian (rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Fri May 28 21:56:25 UTC 2010


    Date: Friday, May 28, 2010 @ 21:56:15
  Author: piotr
Revision: 13130

disable tests if there's "nocheck" in $DEB_BUILD_OPTIONS

Modified:
  packages/flask/trunk/debian/rules

Modified: packages/flask/trunk/debian/rules
===================================================================
--- packages/flask/trunk/debian/rules	2010-05-28 21:06:12 UTC (rev 13129)
+++ packages/flask/trunk/debian/rules	2010-05-28 21:56:15 UTC (rev 13130)
@@ -3,8 +3,15 @@
 export PYTHONPATH=$(CURDIR)
 
 %:
-	dh $@
+	dh $@ --buildsystem python_distutils
 
+build:
+	dh build
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	make test
+endif
+
 clean:
 	dh clean
-	rm -rf Flask.egg-info/
+	rm -rf Flask.egg-info/ build
+	find . \( -name '*.py[co]' -or -name '\._*' -or -name '\.DS_Store' \) -delete




More information about the Python-modules-commits mailing list