[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: gnu: Add python-petsc4py.
From: |
Ludovic Courtès |
Subject: |
06/13: gnu: Add python-petsc4py. |
Date: |
Wed, 14 Nov 2018 15:35:49 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 90ff287401f6b143e4b91de58e985f2597e30fc6
Author: Paul Garlick <address@hidden>
Date: Mon Nov 12 16:00:34 2018 +0000
gnu: Add python-petsc4py.
* gnu/packages/maths.scm (python-petsc4py): New variable.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/maths.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 0d040bf..e36a574 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1808,6 +1808,41 @@ scientific applications modeled by partial differential
equations.")
,@(delete "--with-mpi=0" ,cf)))))
(synopsis "Library to solve PDEs (with complex scalars and MPI support)")))
+(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)))
+
(define-public python-kiwisolver
(package
(name "python-kiwisolver")
- branch master updated (e921993 -> ae0f1dd), Ludovic Courtès, 2018/11/14
- 08/13: gnu: Add python-fenics-dijitso., Ludovic Courtès, 2018/11/14
- 07/13: gnu: Add python-slepc4py., Ludovic Courtès, 2018/11/14
- 03/13: gnu: guix-daemon: Install 'guix-authenticate'., Ludovic Courtès, 2018/11/14
- 02/13: download: Access content-addressed mirrors over HTTPS., Ludovic Courtès, 2018/11/14
- 06/13: gnu: Add python-petsc4py.,
Ludovic Courtès <=
- 10/13: gnu: Add python-fenics-fiat., Ludovic Courtès, 2018/11/14
- 05/13: gnu: Add python-mpi4py., Ludovic Courtès, 2018/11/14
- 13/13: gnu: Add fenics., Ludovic Courtès, 2018/11/14
- 09/13: gnu: Add python-fenics-ufl., Ludovic Courtès, 2018/11/14
- 12/13: gnu: Add fenics-dolfin., Ludovic Courtès, 2018/11/14
- 01/13: download: Add Software Heritage as a content-addressed mirror., Ludovic Courtès, 2018/11/14
- 04/13: daemon: Install 'authenticate' script under LIBEXECDIR/guix., Ludovic Courtès, 2018/11/14
- 11/13: gnu: Add python-fenics-ffc., Ludovic Courtès, 2018/11/14