diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-29 09:51:18 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-29 09:51:18 +0000 |
commit | 24c843931d2c8ba715fc7892b0e2549d582a2765 (patch) | |
tree | 1791b9254f7a78d0f89c26302fe9524469e16bed /community | |
parent | 902b68fbeb86af8126f7ad1a01c2d1e03b63af18 (diff) | |
download | aports-24c843931d2c8ba715fc7892b0e2549d582a2765.tar.bz2 aports-24c843931d2c8ba715fc7892b0e2549d582a2765.tar.xz |
community/py-numpy: upgrade to 1.12.1
Diffstat (limited to 'community')
-rw-r--r-- | community/py-numpy/APKBUILD | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/community/py-numpy/APKBUILD b/community/py-numpy/APKBUILD index ee425c660f..251f028c4e 100644 --- a/community/py-numpy/APKBUILD +++ b/community/py-numpy/APKBUILD @@ -3,14 +3,15 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-numpy _pkgname=numpy -pkgver=1.12.0 -pkgrel=1 +pkgver=1.12.1 +pkgrel=0 pkgdesc="Scientific tools for Python" url="http://numpy.scipy.org/" arch="all" license="BSD" -depends_dev="python2-dev python3-dev cython-dev openblas-dev" -makedepends="$depends_dev gfortran py-setuptools py-nose" +options="!check" +makedepends="python2-dev py-setuptools python3-dev + cython-dev openblas-dev gfortran py-nose" subpackages="$pkgname-dev $pkgname-doc $pkgname-f2py::noarch @@ -24,7 +25,7 @@ source="https://github.com/numpy/numpy/releases/download/v$pkgver/$_pkgname-$pkg builddir="$srcdir/$_pkgname-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cp "$srcdir"/site.cfg "$builddir"/ } @@ -33,8 +34,8 @@ build() { LDFLAGS="$LDFLAGS -shared" cd "$builddir" - python2 setup.py build config_fc --fcompiler=gnu95 || return 1 - python3 setup.py build config_fc --fcompiler=gnu95 || return 1 + python2 setup.py build config_fc --fcompiler=gnu95 + python3 setup.py build config_fc --fcompiler=gnu95 } package() { @@ -42,11 +43,11 @@ package() { local python; for python in python2 python3; do $python setup.py install --prefix=/usr --root="$pkgdir" \ - config_fc --fcompiler=gnu95 || return 1 + config_fc --fcompiler=gnu95 done install -D -m 644 doc/f2py/f2py.1 \ - "$pkgdir"/usr/share/man/man1/f2py.1 || return 1 + "$pkgdir"/usr/share/man/man1/f2py.1 install -D -m 644 LICENSE.txt \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } @@ -57,7 +58,7 @@ dev() { # Move tests to -dev subpackage. find usr/lib/python* -type d -name tests | while read path; do mkdir -p "$subpkgdir/$path" - mv "$path"/* "$subpkgdir/$path"/ || return 1 + mv "$path"/* "$subpkgdir/$path"/ done default_dev @@ -79,7 +80,7 @@ _f2py() { local dir="$(_pylibdir $python)/site-packages/numpy" mkdir -p "$subpkgdir/$dir" "$subpkgdir"/usr/bin - mv "$pkgdir/$dir"/f2py "$subpkgdir/$dir"/ || return 1 + mv "$pkgdir/$dir"/f2py "$subpkgdir/$dir"/ mv "$pkgdir"/usr/bin/f2py$pyver "$subpkgdir"/usr/bin/ } @@ -94,7 +95,7 @@ _py() { local libdir=$(_pylibdir $python) mkdir -p "$subpkgdir/$libdir" - mv "$pkgdir/$libdir"/* "$subpkgdir/$libdir"/ || return 1 + mv "$pkgdir/$libdir"/* "$subpkgdir/$libdir"/ rmdir -p "$pkgdir/$libdir" 2>/dev/null || true } @@ -102,6 +103,6 @@ _pylibdir() { "$1" -c 'import sysconfig; print(sysconfig.get_path("stdlib"))' } -sha512sums="f2474088dbb2bc40e0f2cde06592173a1fdfad53307d430c07eb6bd3bcf3ce4a3c10c0321000d6f3de8d9b818e18f2a0962fbdc9d08a491ab698929a7d1fceb7 numpy-1.12.0.tar.gz +sha512sums="bc3bc12805a048870f4ce63efd01d269c3c29f958c9b354fec6cf47b54c9f957e5427aae0d6a6b3b1a291f099e2411e9d8147dcb748e4798984d079e59a9cf45 numpy-1.12.1.tar.gz f8820c08754b5521e1a30b602bf87667459c96c1abfa78a4f54331c19ceec5e2f3108a20ba09fdf8089087296a4836dc32b2b47022efd90ade3de568aef9a1a7 numpy-1.11.0-musl.patch 21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f site.cfg" |