blob: 39a0375b84c31121bd8ed18b70727cdb325fd326 (
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
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Michel Zou <xantares09@hotmail.com>
_base=scipy
pkgname=pypy3-${_base}
pkgver=1.16.0
pkgrel=1
pkgdesc="Fundamental algorithms for scientific computing in Python"
arch=(x86_64)
url="https://${_base}.org"
license=(BSD-3-Clause)
depends=(blas gcc-libs glibc lapack pypy3-numpy) # pypy3-platformdirs pypy3-pooch
makedepends=(boost pypy3-cython gcc-fortran git meson-pypy3
pypy3-pybind11 pypy3-build pypy3-installer pypy3-pythran)
source=(${_base}-${pkgver}::git+https://github.com/${_base}/${_base}.git?signed#tag=v${pkgver}
git+https://github.com/data-apis/array-api-compat
git+https://github.com/boostorg/math
git+https://github.com/cobyqa/cobyqa
git+https://github.com/${_base}/pocketfft
git+https://github.com/${_base}/unuran)
validpgpkeys=('AD0C5067D1DECED72F6245670196A9293365B112') # Tyler Reddy <tyler.je.reddy@gmail.com>
sha512sums=('1fc45c77bf87c14936c8a38ee9c003bc8dfaa92b1aaaf34c611d7ecc4de208d790686417e41723463002a46ecad022ad5b28483c8a0cb2dc8a676e54708aefac'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
options=(!lto)
prepare() {
cd ${_base}-${pkgver}
git submodule init
git submodule set-url scipy/_lib/array_api_compat "${srcdir}"/array-api-compat
git submodule set-url subprojects/boost_math/math "${srcdir}"/math
git submodule set-url scipy/_lib/cobyqa "${srcdir}"/cobyqa
git submodule set-url scipy/_lib/pocketfft "${srcdir}"/pocketfft
git submodule set-url scipy/_lib/unuran "${srcdir}"/unuran
git -c protocol.file.allow=always submodule update
}
build() {
cd ${_base}-${pkgver}
PATH=/opt/pypy3/bin:${PATH} pypy3 -m build --wheel --skip-dependency-check --no-isolation \
-C setup-args=-Dblas=blas \
-C setup-args=-Dlapack=lapack
}
package() {
cd ${_base}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" pypy3 -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/pypy3-$pkgname
}
|