[arch-commits] Commit in python-scipy/trunk (PKGBUILD)
Lukas Jirkovsky
stativ at nymeria.archlinux.org
Tue Mar 18 11:16:39 UTC 2014
Date: Tuesday, March 18, 2014 @ 12:16:38
Author: stativ
Revision: 107661
scipy: enable tests, though it's done a really hackish way
Modified:
python-scipy/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-03-18 11:16:02 UTC (rev 107660)
+++ PKGBUILD 2014-03-18 11:16:38 UTC (rev 107661)
@@ -42,14 +42,23 @@
}
check() {
- cd scipy-${pkgver}
-# figure out how to run tests in the source tree easily
-# python -c "from scipy import test; test('full')"
-# python setup.py test
+ # we need to do a temp install so we can import scipy
+ # also, the tests must not be run from the scipy source directory
+ export LDFLAGS="-Wall -shared"
- cd ../scipy-${pkgver}-py2
-# figure out how to run tests in the source tree easily
-# python2 -c "from scipy import test; test('full')"
+ cd ${srcdir}/scipy-${pkgver}
+ python3 setup.py config_fc --fcompiler=gnu95 install \
+ --prefix=/usr --root=${srcdir}/test --optimize=1
+ export PYTHONPATH=${srcdir}/test/usr/lib/python3.3/site-packages
+ cd ${srcdir}
+ python -c "from scipy import test; test('full')"
+
+ cd ${srcdir}/scipy-${pkgver}-py2
+ python2 setup.py config_fc --fcompiler=gnu95 install \
+ --prefix=/usr --root=${srcdir}/test --optimize=1
+ export PYTHONPATH=${srcdir}/test/usr/lib/python2.7/site-packages
+ cd ${srcdir}
+ python2 -c "from scipy import test; test('full')"
}
package_python-scipy() {
More information about the arch-commits
mailing list