public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/petsc] main: Avoid AssertionError with Python-3.15
@ 2026-06-23 13:37 Antonio Trande
0 siblings, 0 replies; only message in thread
From: Antonio Trande @ 2026-06-23 13:37 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/petsc
Branch : main
Commit : 0bda5bda29cefee638b7e6b3d5dcdce41da494f0
Author : Antonio Trande <sagitter@fedoraproject.org>
Date : 2026-06-23T15:37:31+02:00
Stats : +8/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/petsc/c/0bda5bda29cefee638b7e6b3d5dcdce41da494f0?branch=main
Log:
Avoid AssertionError with Python-3.15
---
diff --git a/petsc.spec b/petsc.spec
index df434b6..97e3744 100644
--- a/petsc.spec
+++ b/petsc.spec
@@ -592,6 +592,12 @@ for i in `find . -name 'setup.py' -o -name 'configure' -o -name '*.py'`; do
%py3_shebang_fix $i
done
%endif
+
+# Avoid AssertionError with Python-3.15*
+# See https://gitlab.com/petsc/petsc/-/work_items/1902
+%if 0%{?python3_version_nodots} > 313
+sed -n '325d' %{name}-%{version}/src/binding/petsc4py/test/test_mat_py.py
+%endif
%endif
pushd %{name}-%{version}
@@ -1011,7 +1017,7 @@ export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
export MPIEXEC=lib/petsc/bin/petscmpiexec
export PMIX_MCA_gds=hash
export PMIX_MCA_psec=native
-make V=1 petsc4pytest PETSC4PY_NP=2 --exclude=test_mat_py
+make V=1 petsc4pytest PETSC4PY_NP=2
unset PETSC_ARCH
unset PETSC_DIR
%{_openmpi_unload}
@@ -1064,7 +1070,7 @@ export MPIEXEC=lib/petsc/bin/petscmpiexec
export PMIX_MCA_gds=hash
export PMIX_MCA_psec=native
# petsc4py test fails with MPICH
-make V=1 petsc4pytest PETSC4PY_NP=2 --exclude=test_mat_py
+make V=1 petsc4pytest PETSC4PY_NP=2
unset PETSC_ARCH
unset PETSC_DIR
%{_mpich_unload}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-23 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-23 13:37 [rpms/petsc] main: Avoid AssertionError with Python-3.15 Antonio Trande
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox