aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-scipy
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-29 11:32:06 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-29 11:32:06 +0000
commitf2f0284b5678202e5cdf3fe2aef8a0eee4495f3a (patch)
tree73fb74d1b8fff659da1517ad338c095b75e6f616 /testing/py-scipy
parent63481fb403d5fbb700c4fed226c14614ecabdc42 (diff)
downloadaports-f2f0284b5678202e5cdf3fe2aef8a0eee4495f3a.tar.bz2
aports-f2f0284b5678202e5cdf3fe2aef8a0eee4495f3a.tar.xz
testing/py-scipy: upgrade to 0.19.1, fixes #7609
Diffstat (limited to 'testing/py-scipy')
-rw-r--r--testing/py-scipy/APKBUILD44
1 files changed, 30 insertions, 14 deletions
diff --git a/testing/py-scipy/APKBUILD b/testing/py-scipy/APKBUILD
index 242ecb4807..562db089dd 100644
--- a/testing/py-scipy/APKBUILD
+++ b/testing/py-scipy/APKBUILD
@@ -1,32 +1,48 @@
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py-scipy
-pkgver=0.19.0
+pkgver=0.19.1
pkgrel=0
pkgdesc="Python library for scientific computing"
url="http://www.scipy.org"
arch="all"
license="BSD"
-depends="python2 py-numpy-f2py"
-depends_dev="python2-dev gfortran py-numpy-dev openblas-dev"
-makedepends="$depends_dev py-setuptools"
-install=""
-subpackages="$pkgname-dev"
-source="https://files.pythonhosted.org/packages/source/s/scipy/scipy-$pkgver.zip"
-builddir="$srcdir"/scipy-$pkgver
+depends="py-numpy-f2py"
+makedepends="python2-dev python3-dev py-setuptools gfortran py-numpy-dev openblas-dev cython-dev"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname#py-}/${pkgname#py-}/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/${pkgname#py-}-$pkgver
build() {
cd "$builddir"
export LDFLAGS="$LDFLAGS -shared"
- python2 setup.py config_fc \
- --fcompiler=gnu95 config || return 1
- python2 setup.py config_fc \
- --fcompiler=gnu95 build || return 1
+ python2 setup.py config_fc --fcompiler=gnu95 build
+ python3 setup.py config_fc --fcompiler=gnu95 build
}
package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
+}
+
+_py3() {
+ depends="${depends//py-/py3-}"
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
cd "$builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
}
-sha512sums="3144bc14155ae790f2aba5ca6b22cbe5e7170ae1ad305774601ac22e479e1377197e47e3cd7033a5ca3464f5e944db91d3c4615111eb3369cbdd3f9079ae8c54 scipy-0.19.0.zip"
+
+sha512sums="a9717bc42d5812f6929ceb330717be612c85d436d0134a0a6f5a9f802accb78090ace36e8b90759023a56e665dc95c439a1e0b51e4965bb51139ee0c9da1b695 py-scipy-0.19.1.tar.gz"