blob: ec9bb579ab14c21173f074a009db97e9ef7cee96 (
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: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-blis
pkgver=0.9.1
pkgrel=1
pkgdesc="Fast matrix-multiplication as a self-contained Python library"
url="https://github.com/explosion/cython-blis"
arch="x86_64 x86"
license="MIT"
depends="python3 py3-numpy"
makedepends="python3-dev py3-setuptools cython py3-numpy-dev"
checkdepends="py3-pytest py3-hypothesis"
subpackages="$pkgname-doc"
source="blis-$pkgver.tar.gz::https://github.com/explosion/cython-blis/archive/v$pkgver.tar.gz"
#options="!check" # Disable checks as py3-hypothesis 5.x is not supported
builddir="$srcdir/cython-blis-$pkgver"
prepare() {
default_prepare
case "$CARCH" in
x86_64) BLIS_ARCH=x86_64 ;;
x86) BLIS_ARCH=generic ;;
aarch64) BLIS_ARCH=cortexa53 ;;
esac
export BLIS_ARCH
}
build() {
python3 setup.py build_ext --inplace
}
check() {
python3 setup.py install --root="$PWD/tmp_install"
cd tmp_install/$(python3 -c "import site; print(site.getsitepackages()[0])")
PYTHONPATH="$PWD/build/lib" pytest-3 blis
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
sha512sums="
49ab87d80e082ce6ae1be24f1acd08e3bf75666eb978f0fb37e655e84e9d111d6ac0d6b1faaefec49cdbbc3c29c0d8d0d9acd96ba836319fef842950a5eca63c blis-0.9.1.tar.gz
"
|