aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-blis
diff options
context:
space:
mode:
authorOleg Titov <oleg.titov@gmail.com>2019-05-22 14:37:22 -0500
committerLeo <thinkabit.ukim@gmail.com>2019-11-11 18:49:20 -0300
commit30a2adea733b4d5b01835648a06e24b464b65c56 (patch)
treeb285381fcd8396302cf6db71fe87ff17442b4d53 /testing/py3-blis
parentb91c6e6cbdd7c4b620b44dee6106a4bae90977db (diff)
downloadaports-30a2adea733b4d5b01835648a06e24b464b65c56.tar.bz2
aports-30a2adea733b4d5b01835648a06e24b464b65c56.tar.xz
testing/py3-blis: new aport
https://github.com/explosion/cython-blis Fast matrix/multiplication as a self-contained Python library
Diffstat (limited to 'testing/py3-blis')
-rw-r--r--testing/py3-blis/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py3-blis/APKBUILD b/testing/py3-blis/APKBUILD
new file mode 100644
index 0000000000..08d55af843
--- /dev/null
+++ b/testing/py3-blis/APKBUILD
@@ -0,0 +1,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"