mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
# Contributor: Martell Malone <martellmalone@gmail.com>
|
|
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
|
|
pkgname=py-scipy
|
|
pkgver=1.0.1
|
|
pkgrel=2
|
|
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-dev"
|
|
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="1a093aeafed2981f25ba06095375509e127e473a1325bf95d5353f6db5ed3eac9dab950d330f432d177807b8d5d775498f576bfb0539e6dafbdfd87b654111bd scipy-1.0.1.tar.xz"
|