summaryrefslogtreecommitdiff
path: root/community/python-scipy/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-scipy/PKGBUILD')
-rw-r--r--community/python-scipy/PKGBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/community/python-scipy/PKGBUILD b/community/python-scipy/PKGBUILD
index e850f3867..a65d5ae6d 100644
--- a/community/python-scipy/PKGBUILD
+++ b/community/python-scipy/PKGBUILD
@@ -6,31 +6,28 @@
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
pkgname=('python-scipy' 'python2-scipy')
-pkgver=0.12.0
+pkgver=0.13.0
pkgrel=1
pkgdesc="SciPy is open-source software for mathematics, science, and engineering."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.scipy.org/"
license=('BSD')
-makedepends=('gcc-fortran' 'python-numpy' 'python2-numpy')
+makedepends=('gcc-fortran' 'python-numpy' 'python2-numpy' 'python-setuptools' 'python2-setuptools')
checkdepends=('python-nose' 'python2-nose')
-source=("http://downloads.sourceforge.net/scipy/scipy-${pkgver}.tar.gz" )
-# "http://pkgbuild.com/~jelle/0001-GEN-regenerate-C-sources-with-Cython-0.17.1.patch.xz")
+source=("https://pypi.python.org/packages/source/s/scipy/scipy-${pkgver}.tar.gz")
+md5sums=('ffa1e9bfd2bbdf3f17f4cf8139084098')
build() {
- unset LDFLAGS
- unset FFLAGS
-
# Changing the arithmetic parameter (Thanks to Fabrizio Castellano)
- sed -i "s/\#define\ UNK\ 1/\#define\ IBMPC\ 1/" \
- scipy-${pkgver}/scipy/special/cephes/mconf.h
+# sed -i "s/\#define\ UNK\ 1/\#define\ IBMPC\ 1/" \
+# scipy-${pkgver}/scipy/special/cephes/mconf.h
+ export LDFLAGS="-Wall -shared"
# 2 builds
cp -r scipy-${pkgver} scipy-${pkgver}-py2
# build for python3
cd scipy-${pkgver}
-#patch -Np1 -i $srcdir/0001-GEN-regenerate-C-sources-with-Cython-0.17.1.patch
python3 setup.py config_fc --fcompiler=gnu95 build
# build for python2
@@ -48,6 +45,7 @@ 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
cd ../scipy-${pkgver}-py2
# figure out how to run tests in the source tree easily
@@ -59,6 +57,7 @@ package_python-scipy() {
provides=('python3-scipy' 'scipy')
cd scipy-${pkgver}
+ export LDFLAGS="-Wall -shared"
python3 setup.py config_fc --fcompiler=gnu95 install \
--prefix=/usr --root=${pkgdir} --optimize=1
@@ -72,6 +71,7 @@ package_python2-scipy() {
conflicts=('python-scipy<0.9.0')
cd scipy-${pkgver}-py2
+ export LDFLAGS="-Wall -shared"
python2 setup.py config_fc --fcompiler=gnu95 install \
--prefix=/usr --root=${pkgdir} --optimize=1
@@ -81,4 +81,3 @@ package_python2-scipy() {
}
# vim:set ts=2 sw=2 et:
-md5sums=('8fb4da324649f655e8557ea92b998786')