blob: 08d55af84360c65e9b80009d878220a47ebdda1b (
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
|
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-blis
pkgver=0.4.1
pkgrel=0
pkgdesc="Fast matrix-multiplication as a self-contained Python library"
url="https://github.com/explosion/cython-blis"
arch="x86_64"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools cython"
checkdepends="py3-pytest py3-hypothesis py3-numpy"
subpackages="$pkgname-doc"
source="blis-$pkgver.tar.gz::https://github.com/explosion/cython-blis/archive/v$pkgver.tar.gz"
builddir="$srcdir/cython-blis-$pkgver"
case "$CARCH" in
aarch64)
export BLIS_ARCH=cortex53
;;
esac
build() {
python3 setup.py build
}
check() {
python3 setup.py install --root="$PWD/tmp_install"
cd tmp_install/usr/lib/python3.8/site-packages
PYTHONPATH="$PWD/build/lib" pytest-3 blis
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
sha512sums="7085183f477d9da383b8ff4e6cb2d067c4dcde41481b4a634258ec637fe9c7b75dd0f0bbb59a4da75b31a84795d1a053b7fcc8bcf5be6174b529f8e047067e2f blis-0.4.1.tar.gz"
|