[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33059] [PATCH 02/10] gnu: Add python-petsc4py.
From: |
Paul Garlick |
Subject: |
[bug#33059] [PATCH 02/10] gnu: Add python-petsc4py. |
Date: |
Tue, 16 Oct 2018 10:31:16 +0100 |
* gnu/packages/simulation.scm (python-petsc4py): New variable.
---
gnu/packages/simulation.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 857d856..3f6b73f 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -35,6 +35,7 @@
#:use-module (gnu packages mpi)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages ncurses)
+ #:use-module (gnu packages python)
#:use-module (gnu packages readline)
#:use-module (gnu packages ssh)
#:use-module (gnu packages tls)
@@ -264,3 +265,40 @@ supports point-to-point and collective communications of
any picklable Python
object as well as optimized communications of Python objects (such as NumPy
arrays) that expose a buffer interface.")
(license license:bsd-3)))
+
+(define-public python-petsc4py
+ (package
+ (name "python-petsc4py")
+ (version "3.9.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "petsc4py" version))
+ (sha256
+ (base32
+ "1f8zd1ac9irsgkyqmzq30d9kl10fy1nh6zk312dhs43g449fkkhc"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'pre-build
+ (lambda _
+ ;; Define path to PETSc installation.
+ (setenv "PETSC_DIR" (assoc-ref %build-inputs "petsc"))
+ #t))
+ (add-before 'check 'mpi-setup
+ ,%openmpi-setup))))
+ (inputs
+ `(("petsc" ,petsc-openmpi)
+ ("python-numpy" ,python-numpy)))
+ (home-page
+ "https://bitbucket.org/petsc/petsc4py/")
+ (synopsis "Python bindings for PETSc")
+ (description "PETSc, the Portable, Extensible Toolkit for
+Scientific Computation, is a suite of data structures and routines for
+the scalable (parallel) solution of scientific applications modeled by
+partial differential equations. It employs the MPI standard for all
+message-passing communication. @code{petsc4py} provides Python
+bindings to almost all functions of PETSc.")
+ (license license:bsd-3)))
+
--
1.8.3.1
- [bug#33059] [PATCH 04/10] gnu: Add python-fenics-dijitso., (continued)
- [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 <=
- [bug#33059] [PATCH 07/10] gnu: Add python-fenics-ffc., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 08/10] gnu: Add fenics-dolfin., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 09/10] gnu: Add python-fenics-dolfin., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 10/10] gnu: Add fenics., Paul Garlick, 2018/10/16
- [bug#33059] [PATCH 01/10] gnu: Add python-mpi4py., Eric Bavier, 2018/10/19