all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felix Gruber <felgru@posteo.net>
To: 64268@debbugs.gnu.org
Cc: Felix Gruber <felgru@posteo.net>
Subject: [bug#64268] [PATCH] gnu: python-dolfin-adjoint: Fix build.
Date: Sat, 24 Jun 2023 15:01:27 +0000	[thread overview]
Message-ID: <8c606edab248b629f340572b9a6dfcff80bb9e73.1687618887.git.felgru@posteo.net> (raw)

* 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





             reply	other threads:[~2023-06-24 15:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-24 15:01 Felix Gruber [this message]
2023-08-29 20:10 ` bug#64268: Closing Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c606edab248b629f340572b9a6dfcff80bb9e73.1687618887.git.felgru@posteo.net \
    --to=felgru@posteo.net \
    --cc=64268@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.