blob: fcad590bd7b83b0ccf171ef8a6e75a91b01e5890 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Martell Malone <martellmalone@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-numpy
_pkgname=numpy
pkgver=1.18.2
pkgrel=0
pkgdesc="Scientific tools for Python"
url="https://www.numpy.org/"
arch="all !mips !mips64"
license="BSD-3-Clause"
options="!check"
replaces="py-numpy"
makedepends="python3-dev cython openblas-dev>=0.3.0
gfortran py3-nose libbsd-dev py3-setuptools
lapack-dev"
subpackages="$pkgname-dev
$pkgname-doc
$pkgname-f2py::noarch"
source="https://github.com/numpy/numpy/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz
numpy-1.17.0-musl.patch
site.cfg"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
cp "$srcdir"/site.cfg "$builddir"/
}
build() {
export Atlas=None
LDFLAGS="$LDFLAGS -shared"
python3 setup.py build config_fc --fcompiler=gnu95
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" \
config_fc --fcompiler=gnu95
install -D -m 644 LICENSE.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
f2py() {
pkgdesc="f2py for numpy (for python3)"
depends="py3-numpy=$pkgver-r$pkgrel python3-dev"
install_if="$pkgname-f2py=$pkgver-r$pkgrel python3"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/f2py* "$subpkgdir"/usr/bin/
}
dev() {
depends_dev="$pkgname"
default_dev
}
sha512sums="2aefa6528ce0a5650d894ea5c49b5d5dd1f658575e6a79ec91c293001ff0abdd44b29133a38f5bb7495a9b49a885d31655a751e2a8a08f83dbcf2f3ff6b3a471 numpy-1.18.2.tar.gz
f9f2a89ad4409b14e2b46acedadfc5e8d79a749af6cad3c8d168bcaf21ca4379cd03be95f22485c35b41114604599bbeb9adaa96dff4194b01dc73e90c04a29f numpy-1.17.0-musl.patch
21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f site.cfg"
|