[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33059] [PATCH 04/10] gnu: Add python-fenics-dijitso.
From: |
Paul Garlick |
Subject: |
[bug#33059] [PATCH 04/10] gnu: Add python-fenics-dijitso. |
Date: |
Tue, 16 Oct 2018 10:31:18 +0100 |
* gnu/packages/simulation.scm (python-fenics-dijitso): New varaible.
---
gnu/packages/simulation.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 50 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 72528c0..8bbf435 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -22,6 +22,7 @@
#:use-module (gnu packages bash)
#:use-module (gnu packages bison)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages flex)
#:use-module (gnu packages gettext)
@@ -339,4 +340,52 @@ Scientific Computation. It employs the MPI standard for
all
message-passing communication. @code{slepc4py} provides Python
bindings to almost all functions of SLEPc.")
(license license:bsd-3)))
-
+
+(define-public python-fenics-dijitso
+ (package
+ (name "python-fenics-dijitso")
+ (version "2018.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "fenics-dijitso" version))
+ (sha256
+ (base32
+ "1qax2f52qsjbd1h5lk5i5shp448qlakxabjjybrfc1w823p0yql9"))))
+ (build-system python-build-system)
+ (inputs
+ `(("openmpi" ,openmpi)
+ ("python-numpy" ,python-numpy)))
+ (native-inputs
+ `(("python-pytest-cov" ,python-pytest-cov)))
+ (propagated-inputs
+ `(("python-mpi4py" ,python-mpi4py)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'mpi-setup
+ ,%openmpi-setup)
+ (replace 'check
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) ":" (getenv "PYTHONPATH")))
+ (chdir "test")
+ (invoke "./runtests.sh")
+ (chdir "..")
+ #t)))))
+ (home-page
+ "https://bitbucket.org/fenics-project/dijitso/")
+ (synopsis
+ "Distributed just-in-time building of shared libraries")
+ (description
+ "Dijitso provides a core component of the @code{FEniCS} framework,
+namely the just-in-time compilation of C++ code that is generated from
+Python modules. It is called from within a C++ library, using ctypes
+to import the dynamic shared library directly.
+
+As long as the compiled code can provide a simple factory function to
+a class implementing a predefined C++ interface, there is no limit to
+the complexity of that interface. Parallel support depends on the
address@hidden interface.")
+ (license license:lgpl3+)))
--
1.8.3.1
- [bug#33059] [PATCH 00/10] Add the FEniCS Project, Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 01/10] gnu: Add python-mpi4py., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 06/10] gnu: Add python-fenics-fiat., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 03/10] gnu: Add python-slepc4py., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 05/10] gnu: Add python-fenics-ufl., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 02/10] gnu: Add python-petsc4py., Paul Garlick, 2018/10/16