diff options
authorMarek Szuba <>2020-06-26 18:31:10 +0200
committerMarek Szuba <>2020-06-26 18:35:59 +0200
commit14c8cc90697d632e0d67fb3c8c8781d31cd8fda1 (patch)
parentnet-misc/rsync: Security cleanup (diff)
dev-python/pyopencl-2019.1.2: disable tests
They fail if there are no OpenCL platforms available and even if there is one, they mostly get skipped unless the user 'portage' is granted additional permissions in order to be able to talk to the GPU (which I am pretty sure is a bad idea). Just don't bother. Closes: Signed-off-by: Marek Szuba <>
1 files changed, 7 insertions, 6 deletions
diff --git a/dev-python/pyopencl/pyopencl-2019.1.2.ebuild b/dev-python/pyopencl/pyopencl-2019.1.2.ebuild
index 73b273d25bb..fbc6d6a6474 100644
--- a/dev-python/pyopencl/pyopencl-2019.1.2.ebuild
+++ b/dev-python/pyopencl/pyopencl-2019.1.2.ebuild
@@ -28,7 +28,13 @@ RDEPEND="
-distutils_enable_tests pytest
+# The test suite fails if there are no OpenCL platforms available, and
+# even if there is one (which requires the presence of both an OpenCL
+# runtime *and* hardware supported by it - simply emerging any runtime
+# is not enough) the vast majority of tests end up skipped because by
+# default the portage user hasn't got sufficient privileges to talk
+# to the GPU.
python_configure_all() {
local myconf=()
@@ -41,11 +47,6 @@ python_configure_all() {
-python_test() {
- cd "${S}/test" || die
- pytest -vv || die "Testsuite failed under ${EPYTHON}"
python_install_all() {
if use examples; then
dodoc -r examples