Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopencl/
Date: Fri, 26 Jun 2020 16:37:01
Message-Id: 1593189359.14c8cc90697d632e0d67fb3c8c8781d31cd8fda1.marecki@gentoo
1 commit: 14c8cc90697d632e0d67fb3c8c8781d31cd8fda1
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 26 16:31:10 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 26 16:35:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14c8cc90
7
8 dev-python/pyopencl-2019.1.2: disable tests
9
10 They fail if there are no OpenCL platforms available and even if there
11 is one, they mostly get skipped unless the user 'portage' is granted
12 additional permissions in order to be able to talk to the GPU (which I
13 am pretty sure is a bad idea). Just don't bother.
14
15 Closes: https://bugs.gentoo.org/729742
16 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
17
18 dev-python/pyopencl/pyopencl-2019.1.2.ebuild | 13 +++++++------
19 1 file changed, 7 insertions(+), 6 deletions(-)
20
21 diff --git a/dev-python/pyopencl/pyopencl-2019.1.2.ebuild b/dev-python/pyopencl/pyopencl-2019.1.2.ebuild
22 index 73b273d25bb..fbc6d6a6474 100644
23 --- a/dev-python/pyopencl/pyopencl-2019.1.2.ebuild
24 +++ b/dev-python/pyopencl/pyopencl-2019.1.2.ebuild
25 @@ -28,7 +28,13 @@ RDEPEND="
26 >=virtual/opencl-2"
27 DEPEND="${RDEPEND}"
28
29 -distutils_enable_tests pytest
30 +# The test suite fails if there are no OpenCL platforms available, and
31 +# even if there is one (which requires the presence of both an OpenCL
32 +# runtime *and* hardware supported by it - simply emerging any runtime
33 +# is not enough) the vast majority of tests end up skipped because by
34 +# default the portage user hasn't got sufficient privileges to talk
35 +# to the GPU.
36 +RESTRICT="test"
37
38 python_configure_all() {
39 local myconf=()
40 @@ -41,11 +47,6 @@ python_configure_all() {
41 "${myconf[@]}"
42 }
43
44 -python_test() {
45 - cd "${S}/test" || die
46 - pytest -vv || die "Testsuite failed under ${EPYTHON}"
47 -}
48 -
49 python_install_all() {
50 if use examples; then
51 dodoc -r examples