[Python-apps-commits] r13722 - in packages/cython/trunk/debian (changelog rules)

yoh at users.alioth.debian.org yoh at users.alioth.debian.org
Sun Nov 20 04:37:40 UTC 2016


    Date: Sunday, November 20, 2016 @ 04:37:39
  Author: yoh
Revision: 13722

Pass --shard_count= to runtests.py to run tests in parallel to speed up package build time. Although we do not parallelize build, tests are consuming significant portion of build time (Closes: #750841)

Modified:
  packages/cython/trunk/debian/changelog
  packages/cython/trunk/debian/rules

Modified: packages/cython/trunk/debian/changelog
===================================================================
--- packages/cython/trunk/debian/changelog	2016-11-20 04:37:34 UTC (rev 13721)
+++ packages/cython/trunk/debian/changelog	2016-11-20 04:37:39 UTC (rev 13722)
@@ -4,8 +4,11 @@
   * Tools/cython-mode.el installed under usr/share/emacs/site-lisp as a
     part of cython package (there is no -common yet, and python still 
     defaults to 2) (Closes: #794844)
+  * Pass --shard_count= to runtests.py to run tests in parallel to
+    speed up package build time. Although we do not parallelize build,
+    tests are consuming significant portion of build time (Closes: #750841)
 
- -- Yaroslav Halchenko <debian at onerussian.com>  Sat, 19 Nov 2016 10:17:40 -0500
+ -- Yaroslav Halchenko <debian at onerussian.com>  Sat, 19 Nov 2016 10:33:54 -0500
 
 cython (0.24.1-2) unstable; urgency=medium
 

Modified: packages/cython/trunk/debian/rules
===================================================================
--- packages/cython/trunk/debian/rules	2016-11-20 04:37:34 UTC (rev 13721)
+++ packages/cython/trunk/debian/rules	2016-11-20 04:37:39 UTC (rev 13722)
@@ -12,6 +12,11 @@
 PY2VERS=$(shell pyversions -vr)
 PY3VERS=$(shell py3versions -vr)
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+  NUMJOBS=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+  RUNTESTSOPTS=--shard_count=$(NUMJOBS)
+endif
+
 # In case matplotlib or anything else inquires
 export HOME=$(CURDIR)/build
 export MPLCONFIGDIR=$(CURDIR)/build
@@ -106,7 +111,8 @@
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e; for P in $(PY2VERS) $(PY3VERS); do \
 	 PYTHONPATH=`/bin/ls -d $(CURDIR)/build/lib.*-$$P` \
-	  /usr/bin/python$$P runtests.py --no-refnanny -v -v --exclude="(parallel|Debugger)" --work-dir=build/work-dir 2>&1; \
+	  /usr/bin/python$$P runtests.py $(RUNTESTSOPTS) \
+        --no-refnanny -v -v --exclude="(parallel|Debugger)" --work-dir=build/work-dir 2>&1; \
 	done
 endif
 




More information about the Python-apps-commits mailing list