mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
|
|
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
|
|
pkgname=py3-opencl
|
|
_pkgreal=pyopencl
|
|
pkgver=2022.3.1
|
|
pkgrel=1
|
|
pkgdesc="Python3 wrapper for OpenCL"
|
|
url="https://pypi.org/project/pyopencl"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="py3-platformdirs py3-numpy py3-mako py3-pytools"
|
|
makedepends="
|
|
libffi-dev
|
|
mesa-dev
|
|
opencl-dev
|
|
py3-gpep517
|
|
py3-numpy-dev
|
|
py3-pybind11-dev
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="py3-pytest py3-py"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
options="!check" # tests require python-theano which isn't packed yet
|
|
|
|
replaces="py-opencl" # Backwards compatibility
|
|
provides="py-opencl=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
57944de69bb24f0f22fb2c0165cd4de5265f5329246fead8449d26e6cbe1204fd44ced70df9960aa54e7d285abe81d8f8a802ba62309de5f4865e882177025ae pyopencl-2022.3.1.tar.gz
|
|
"
|