blob: a0ba4b57740f1eb9d865e86456ce156ca09b67b3 (
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
|
# Contributor: Martell Malone <martellmalone@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py-scipy
pkgver=1.2.1
pkgrel=4
pkgdesc="Python library for scientific computing"
url="http://www.scipy.org"
arch="all"
license="BSD"
depends="py-numpy-f2py"
makedepends="python2-dev python3-dev py-setuptools gfortran py-numpy-dev openblas-dev>=0.3.0 cython"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://github.com/scipy/scipy/releases/download/v$pkgver/scipy-$pkgver.tar.xz"
builddir="$srcdir"/${pkgname#py-}-$pkgver
build() {
cd "$builddir"
export LDFLAGS="$LDFLAGS -shared"
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"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
sha512sums="ebc75c9c40c5accb581c88e42fd3e96a26b42c6bd3785e6e84ace8b1f44fb836c83721c267fcdd9e8f573532056a74b150bde9316da4ac71aa33bd848cc49bd1 scipy-1.2.1.tar.xz"
|