diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-28 03:35:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-28 03:35:53 +0000 |
commit | def73efccccb818d214cb818e8b4de8385444a43 (patch) | |
tree | 89db423b051ce9f971b6f7386ada2a3573b6e3b7 /community/python-scipy/PKGBUILD | |
parent | eb411a7c7cc929ada01019bd4c306116ce385693 (diff) |
Fri Mar 28 03:32:00 UTC 2014
Diffstat (limited to 'community/python-scipy/PKGBUILD')
-rw-r--r-- | community/python-scipy/PKGBUILD | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/community/python-scipy/PKGBUILD b/community/python-scipy/PKGBUILD index e6ab4fe59..7f9d117ff 100644 --- a/community/python-scipy/PKGBUILD +++ b/community/python-scipy/PKGBUILD @@ -7,7 +7,7 @@ pkgname=('python-scipy' 'python2-scipy') pkgver=0.13.3 -pkgrel=1 +pkgrel=2 pkgdesc="SciPy is open-source software for mathematics, science, and engineering." arch=('i686' 'x86_64') url="http://www.scipy.org/" @@ -42,14 +42,23 @@ build() { } 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.4/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() { |