mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 02:05:16 +03:00
46 lines
1 KiB
Text
46 lines
1 KiB
Text
# Contributor: Martell Malone <martellmalone@gmail.com>
|
|
# Maintainer:
|
|
pkgname=py3-scipy
|
|
pkgver=1.10.1
|
|
pkgrel=0
|
|
pkgdesc="Python library for scientific computing"
|
|
url="https://www.scipy.org/"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
depends="py3-pooch py3-numpy-f2py"
|
|
makedepends="
|
|
cython
|
|
gfortran
|
|
openblas-dev
|
|
py3-gpep517
|
|
py3-meson-python
|
|
py3-numpy-dev
|
|
py3-pybind11-dev
|
|
py3-wheel
|
|
python3-dev
|
|
pythran
|
|
"
|
|
source="https://github.com/scipy/scipy/releases/download/v$pkgver/scipy-$pkgver.tar.gz"
|
|
builddir="$srcdir"/scipy-$pkgver
|
|
|
|
replaces=py-scipy # Backwards compatibility
|
|
provides=py-scipy=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
build() {
|
|
export CFLAGS="$CFLAGS -O2 -flto=auto"
|
|
export CXXFLAGS="$CXXFLAGS -O2 -flto=auto"
|
|
export CPPFLAGS="$CPPFLAGS -O2 -flto=auto"
|
|
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
767e1dee6285d98e4d58d8d8d1e3654b00e3216e9ad55455fc9473f1d044bef80ecce749bcd24d8f331367b882c9c3e6b652a6e901bb4296ddc7cc44699215b6 scipy-1.10.1.tar.gz
|
|
"
|