[Python-modules-commits] r23409 - in packages/scipy/trunk/debian (changelog control rules)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Sun Jan 27 16:53:41 UTC 2013
Date: Sunday, January 27, 2013 @ 16:53:38
Author: jtaylor-guest
Revision: 23409
run fast tests during build
Modified:
packages/scipy/trunk/debian/changelog
packages/scipy/trunk/debian/control
packages/scipy/trunk/debian/rules
Modified: packages/scipy/trunk/debian/changelog
===================================================================
--- packages/scipy/trunk/debian/changelog 2013-01-27 16:53:34 UTC (rev 23408)
+++ packages/scipy/trunk/debian/changelog 2013-01-27 16:53:38 UTC (rev 23409)
@@ -14,6 +14,7 @@
- fix-test_basic.py-cephes_vs_amos_mass_te.patch
- python3.3-incdir.diff
* add autopkgtests
+ * run fast tests during build
-- Julian Taylor <jtaylor.debian at googlemail.com> Fri, 25 Jan 2013 23:54:43 +0100
Modified: packages/scipy/trunk/debian/control
===================================================================
--- packages/scipy/trunk/debian/control 2013-01-27 16:53:34 UTC (rev 23408)
+++ packages/scipy/trunk/debian/control 2013-01-27 16:53:38 UTC (rev 23409)
@@ -15,10 +15,12 @@
python-all-dbg (>= 2.5.4-1~),
python-all-dev (>= 2.6.6-3~),
python-mako,
+ python-nose,
python-numpy (>= 1:1.5.1),
python-numpy-dbg (>= 1:1.5.1),
python3-all-dbg,
python3-all-dev,
+ python3-nose,
python3-numpy (>= 1:1.6.2~rc1-1~),
python3-numpy-dbg,
sharutils,
Modified: packages/scipy/trunk/debian/rules
===================================================================
--- packages/scipy/trunk/debian/rules 2013-01-27 16:53:34 UTC (rev 23408)
+++ packages/scipy/trunk/debian/rules 2013-01-27 16:53:38 UTC (rev 23409)
@@ -6,6 +6,7 @@
PY2VERS:= $(shell pyversions -v -r debian/control)
PY3VERS:= $(shell py3versions -v -r debian/control)
+TMPDIR := $(CURDIR)/build/tmp
BASE=$(shell pwd)/debian
DVER=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | sed 's/-[^-]*$$//')
UVER=$(shell echo $(DVER) | sed "s/+dfsg.*//g")
@@ -38,7 +39,7 @@
CFLAGS="-g -ggdb" python$*-dbg setup.py config_fc \
--noarch build;
-override_dh_auto_build: $(PY3VERS:%=build-python%) $(PY2VERS:%=build-python%)
+override_dh_auto_build: $(PY2VERS:%=build-python%) $(PY3VERS:%=build-python%)
install-python%:
python$* setup.py install --root $(BASE)/tmp \
@@ -63,6 +64,19 @@
#call dh_numpy
dh_numpy
dh_numpy3
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ mkdir -p $(TMPDIR)
+ set -e && for pyvers in $(PY2VERS); do \
+ HOME=$(TMPDIR) ADTTMP=$(TMPDIR) \
+ PYTHONPATH=$(BASE)/python-scipy/usr/lib/python$$pyvers/dist-packages/ \
+ PYS=python$$pyvers TESTMODE=fast $(BASE)/tests/python2; \
+ done
+ set -e && for pyvers in $(PY3VERS); do \
+ HOME=$(TMPDIR) ADTTMP=$(TMPDIR) \
+ PYTHONPATH=$(BASE)/python3-scipy/usr/lib/python3/dist-packages/ \
+ PYS=python$$pyvers TESTMODE=fast $(BASE)/tests/python3; \
+ done
+endif
override_dh_fixperms:
dh_fixperms
More information about the Python-modules-commits
mailing list