repo/gentoo:master commit in: dev-python/pycuda/

"Sam James" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1787023744.6623da6a774c0a713b1fc8b630e4061325e34621.sam@gentoo>
commit:     6623da6a774c0a713b1fc8b630e4061325e34621
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 18 03:24:27 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 18 03:29:04 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6623da6a

dev-python/pycuda: misc tweaks

* Use edo
* Enable DISTUTILS_EXT
* Run tests in parallel
* Disable plugins w/ EPYTEST_PLUGINS=()
* Fix running tests (couldn't import before)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pycuda/pycuda-2025.1.3.ebuild | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/dev-python/pycuda/pycuda-2025.1.3.ebuild b/dev-python/pycuda/pycuda-2025.1.3.ebuild
index 6aef233d9a7f..0f5a9ea599bb 100644
--- a/dev-python/pycuda/pycuda-2025.1.3.ebuild
+++ b/dev-python/pycuda/pycuda-2025.1.3.ebuild
@@ -3,9 +3,10 @@
 
 EAPI=8
 
+DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
-inherit cuda distutils-r1 pypi
+PYTHON_COMPAT=( python3_{12..14} )
+inherit cuda distutils-r1 edo pypi
 
 DESCRIPTION="Python wrapper for NVIDIA CUDA"
 HOMEPAGE="https://mathema.tician.de/software/pycuda/ https://pypi.org/project/pycuda/ https://github.com/inducer/pycuda"
@@ -31,6 +32,8 @@ DEPEND="${RDEPEND}"
 # user is (usually) not in the video group
 RESTRICT="test? ( userpriv ) !test? ( test )"
 
+EPYTEST_PLUGINS=()
+EPYTEST_XDIST=1
 distutils_enable_tests pytest
 
 src_prepare() {
@@ -49,7 +52,6 @@ python_configure() {
 	cd "${BUILD_DIR}" || die
 
 	local conf=(
-		"${EPYTHON}" "${S}"/configure.py
 		--boost-inc-dir="${ESYSROOT}"/usr/include
 		--boost-lib-dir="${ESYSROOT}"/usr/$(get_libdir)
 		--boost-python-libname=boost_${EPYTHON/./}.so
@@ -59,8 +61,8 @@ python_configure() {
 		--cudadrv-lib-dir="${ESYSROOT}"/usr/$(get_libdir)
 		--cudart-lib-dir="${ESYSROOT}"/opt/cuda/$(get_libdir)
 	)
-	echo ${conf[*]}
-	"${conf[@]}" || die
+
+	edo "${EPYTHON}" "${S}"/configure.py "${conf[@]}"
 }
 
 python_test() {
@@ -76,8 +78,8 @@ python_test() {
 		test/test_driver.py::test_pointer_holder_base
 	)
 
-	cd "${T}" || die
-	epytest "${S}"/test
+	rm -rf pycuda || die
+	epytest test
 }
 
 python_install_all() {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.