From 5e3534894ed3ab98d7a6782977228b72daebdf53 Mon Sep 17 00:00:00 2001 From: Christopher Kerr Date: Sun, 31 Jul 2022 12:30:13 +0300 Subject: [PATCH] dev-python/pyopencl: Enable FEATURES=test using dev-libs/pocl as OpenCL implementation Use multiprocessing eclass to set thread count based on MAKEOPTS Closes: https://bugs.gentoo.org/861251 Signed-off-by: Christopher Kerr Signed-off-by: Marek Szuba --- dev-python/pyopencl/pyopencl-2022.1.6.ebuild | 25 +++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/dev-python/pyopencl/pyopencl-2022.1.6.ebuild b/dev-python/pyopencl/pyopencl-2022.1.6.ebuild index 19e2c5a987c84..a1d774b5553c8 100644 --- a/dev-python/pyopencl/pyopencl-2022.1.6.ebuild +++ b/dev-python/pyopencl/pyopencl-2022.1.6.ebuild @@ -6,7 +6,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +inherit distutils-r1 multiprocessing DESCRIPTION="Python wrapper for OpenCL" HOMEPAGE="https://mathema.tician.de/software/pyopencl/ @@ -29,15 +29,10 @@ RDEPEND="${COMMON} >=dev-python/pytools-2021.2.7[${PYTHON_USEDEP}]" BDEPEND="dev-python/numpy[${PYTHON_USEDEP}] >=dev-python/pybind11-2.5.0[${PYTHON_USEDEP}] - /dev/null || die + epytest + popd >/dev/null || die +} + python_install_all() { if use examples; then dodoc -r examples