unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64268] [PATCH] gnu: python-dolfin-adjoint: Fix build.
@ 2023-06-24 15:01 Felix Gruber
  2023-08-29 20:10 ` bug#64268: Closing Andreas Enge
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Gruber @ 2023-06-24 15:01 UTC (permalink / raw)
  To: 64268; +Cc: Felix Gruber

* gnu/packages/simulation.scm (python-dolfin-adjoint): Fix build.
  [arguments]: Disable failing test_read_checkpoint in 'check phase.
  Remove broken 'sanity-check phase.
---
 gnu/packages/simulation.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 059be5a2be..c76654f761 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -1027,10 +1027,17 @@ (define-public python-dolfin-adjoint
              (when tests?
                (add-installed-pythonpath inputs outputs)
                (setenv "HOME" (getcwd))
-               (and (invoke "py.test" "-v" "tests/fenics_adjoint")
+               (and (invoke "py.test" "-v" "tests/fenics_adjoint"
+                            "-k" "not test_read_checkpoint")
                     (invoke "py.test" "-v" "tests/migration")
                     (invoke "py.test" "-v" "tests/pyadjoint")))
-             #t)))))
+             #t))
+         ;; Remove 'sanity-check, because it tries to import
+         ;; firedrake_adjoint after importing fenics_adjoint.
+         ;; Both load a module named 'backend' and firedrake_adjoint
+         ;; fails with an ImportError if it sees that the backend module
+         ;; has already been loaded.
+         (delete 'sanity-check))))
     (home-page "https://www.dolfin-adjoint.org")
     (synopsis "Automatic differentiation library")
     (description "@code{python-dolfin-adjoint} is a solver of

base-commit: d6dc82e8cdb2d6114a12b06d449ce7f1150c7f70
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#64268: Closing
  2023-06-24 15:01 [bug#64268] [PATCH] gnu: python-dolfin-adjoint: Fix build Felix Gruber
@ 2023-08-29 20:10 ` Andreas Enge
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Enge @ 2023-08-29 20:10 UTC (permalink / raw)
  To: 64268-done

Hello Felix,

thanks for your contribution! Our CI has been lagging behind recently, so
it has taken a bit longer than usual, but I have just applied your patch.

Andreas





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-29 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-24 15:01 [bug#64268] [PATCH] gnu: python-dolfin-adjoint: Fix build Felix Gruber
2023-08-29 20:10 ` bug#64268: Closing Andreas Enge

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).