emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64268: closed ([PATCH] gnu: python-dolfin-adjoint: Fix build.)


From: GNU bug Tracking System
Subject: bug#64268: closed ([PATCH] gnu: python-dolfin-adjoint: Fix build.)
Date: Tue, 29 Aug 2023 20:11:02 +0000

Your message dated Tue, 29 Aug 2023 22:10:11 +0200
with message-id <ZO5Qoy9cySXBRswx@jurong>
and subject line Closing
has caused the debbugs.gnu.org bug report #64268,
regarding [PATCH] gnu: python-dolfin-adjoint: Fix build.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
64268: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64268
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: python-dolfin-adjoint: Fix build. Date: Sat, 24 Jun 2023 15:01:27 +0000
* 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




--- End Message ---
--- Begin Message --- Subject: Closing Date: Tue, 29 Aug 2023 22:10:11 +0200
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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]