[Python-modules-team] Bug#695881: patch update

Julian Taylor jtaylor.debian at googlemail.com
Fri Dec 14 16:18:15 UTC 2012


attached a little update to the first patch fixing a couple of forgotten
things.
it applies ontop the last one.

the openblas test is actually a bit sketchy as it does not work properly
in virtual machines (depending on their configuration) which are used to
run the tests automatically.
-------------- next part --------------
diff --git a/debian/tests/control b/debian/tests/control
index 5ef860b..ca64018 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -4,11 +4,15 @@ Depends: python-numpy, python-all, python-nose, python-tz
 Tests: python3
 Depends: python3-numpy, python3-all, python3-nose, python3-tz
 
+#use update-alternatives
 Tests: openblas
+Restrictions: needs-root
 Depends: python-numpy, python-all, python-nose, python-tz, libopenblas-base
 
+#use update-alternatives
 Tests: atlas
+Restrictions: needs-root
 Depends: python-numpy, python-all, python-nose, python-tz, libatlas3-base
 
 Tests: f2py
-Depends: gfortran, python-numpy, python-numpy-dbg, python-all, python-all-dbg, python-all-dev, python3-numpy, python3-numpy-dbg, python3-all, python3-all-dbg, python3-all-dev
+Depends: gcc, gfortran, python-numpy, python-numpy-dbg, python-all, python-all-dbg, python-all-dev, python3-numpy, python3-numpy-dbg, python3-all, python3-all-dbg, python3-all-dev
diff --git a/debian/tests/f2py b/debian/tests/f2py
index afbd8b7..7d7c320 100755
--- a/debian/tests/f2py
+++ b/debian/tests/f2py
@@ -17,7 +17,7 @@ for py in " " 3 $PYS; do
     [ "$py" = " " ] && py=""
     echo "=== f2py$py ==="
     f2py$py -c -m hello hello.f 2>&1
-    python -c 'import hello; assert hello.foo(4) == 5'
+    python$py -c 'import hello; assert hello.foo(4) == 5'
     f2py$py-dbg -c -m hello hello.f 2>&1
-    python -c 'import hello; assert hello.foo(4) == 5'
+    python$py-dbg -c 'import hello; assert hello.foo(4) == 5'
 done
diff --git a/debian/tests/openblas b/debian/tests/openblas
index 211eee6..c4b9eb2 100755
--- a/debian/tests/openblas
+++ b/debian/tests/openblas
@@ -1,6 +1,7 @@
 #!/bin/sh
 set -efu
-readlink -f /usr/lib/libblas.so.3 2>&1 || true
+blaslib=$(update-alternatives --list libblas.so.3 | grep $(basename $0))
+update-alternatives --set libblas.so.3 $blaslib
 
 # one python is enough
 PYS=${PYS:-"$(pyversions -d 2>/dev/null)"}


More information about the Python-modules-team mailing list