summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-12-10 04:39:22 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-12-10 04:39:22 +0000
commit7c3a67c19e465e72d2f6575804e0f31944a2324c (patch)
tree56e4750d949723f14f40de6ab37bf5f66d304f1a /user
parent29ba5cf876bfe1e82543a00ab07af75fe37f1b84 (diff)
downloadpackages-7c3a67c19e465e72d2f6575804e0f31944a2324c.tar.gz
packages-7c3a67c19e465e72d2f6575804e0f31944a2324c.tar.bz2
packages-7c3a67c19e465e72d2f6575804e0f31944a2324c.tar.xz
packages-7c3a67c19e465e72d2f6575804e0f31944a2324c.zip
user/py3-cython: New package
Diffstat (limited to 'user')
-rw-r--r--user/py3-cython/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/py3-cython/APKBUILD b/user/py3-cython/APKBUILD
new file mode 100644
index 000000000..b5b682b46
--- /dev/null
+++ b/user/py3-cython/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=py3-cython
+_pkgname=Cython
+pkgver=0.29.21
+pkgrel=0
+pkgdesc="Compiler for writing C extensions for the Python language"
+url="https://cython.org/"
+arch="all"
+options="net" # downloads numpy at least
+license="Apache-2.0"
+depends="python3"
+makedepends="python3-dev"
+subpackages=""
+source="https://pypi.io/packages/source/C/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 runtests.py --shard_count=${JOBS}
+}
+
+package() {
+ mkdir -p "$pkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="6216e63996e83b887cdcee6cd912d42e7da853640336b9190f5115d687848a902ee5a8edd6bfaef645c066b89e17dcd80ca1387688eb80a527ec23a0a4636e8f Cython-0.29.21.tar.gz"