guix-patches
[Top][All Lists]
Advanced

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

[bug#33059] [PATCH 09/10] gnu: Add python-fenics-dolfin.


From: Ludovic Courtès
Subject: [bug#33059] [PATCH 09/10] gnu: Add python-fenics-dolfin.
Date: Thu, 25 Oct 2018 00:15:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Paul Garlick <address@hidden> skribis:

> * gnu/packages/simulation.scm (python-fenics-dolfin): New variable.

[...]

> +           (lambda _
> +             (use-modules (ice-9 regex)
> +                          (ice-9 rdelim)
> +                          (guix build utils)
> +                          (rnrs io ports))

Rather #:modules.

> +             ;; Exclude tests that require meshes supplied by git-lfs.
> +             (with-atomic-file-replacement "demo/test.py"
> +               (let ((rx (make-regexp "stem !")))
> +                 (lambda (in out)
> +                   (let loop ()

Same question as before about using ‘substitute*’.

> +             (chdir "../demo")
> +             ;; Check demos.
> +             (invoke "python" "generate-demo-files.py")
> +             (and (invoke "python" "-m" "pytest" "-v" "test.py")
> +                  (invoke "python" "-m" "pytest" "-v" "test.py"
> +                          "--mpiexec=mpiexec" "--num-proc=3"))
> +             (chdir "..")

Rather ‘with-directory-excursion’.

> +    (home-page
> +      "https://bitbucket.org/fenics-project/dolfin/";)
> +    (synopsis
> +      "High-level problem solving environment for differential equations")

Single line.  :-)





reply via email to

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