summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-29 08:38:36 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-31 14:26:17 +0000
commite640aa6acb7c92c5da3cf55c35005aa7def08b47 (patch)
tree6042ff136084bad353b2ff92f3c64011a2772171 /gnu
parent95d9fd22d8dde6d7cabfce1fac77ef2c12c81d4d (diff)
gnu: python-petsc4py: Switch to pyproject.
* gnu/packages/maths.scm (python-petsc4py): Run guix style. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. Change-Id: If00fb947d8d0b99665601c04714d5b7d21fb167f Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maths.scm41
1 files changed, 20 insertions, 21 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 283289841f7..55b3f56a86e 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4663,28 +4663,27 @@ can return results in exact arithmetic.")
4663 (name "python-petsc4py") 4663 (name "python-petsc4py")
4664 (version "3.24.0") 4664 (version "3.24.0")
4665 (source 4665 (source
4666 (origin 4666 (origin
4667 (method url-fetch) 4667 (method url-fetch)
4668 (uri (pypi-uri "petsc4py" version)) 4668 (uri (pypi-uri "petsc4py" version))
4669 (sha256 4669 (sha256
4670 (base32 4670 (base32 "06wi2r43drlfj3hml5392pckn2n99rjfb1p1hz75n3d84z5jrj9x"))))
4671 "06wi2r43drlfj3hml5392pckn2n99rjfb1p1hz75n3d84z5jrj9x")))) 4671 (build-system pyproject-build-system)
4672 (build-system python-build-system)
4673 (arguments 4672 (arguments
4674 (list #:phases 4673 (list
4675 #~(modify-phases %standard-phases 4674 #:phases
4676 (add-before 'build 'set-PETSC_DIR 4675 #~(modify-phases %standard-phases
4677 (lambda* (#:key inputs #:allow-other-keys) 4676 (add-before 'build 'set-PETSC_DIR
4678 ;; Define path to PETSc installation. 4677 (lambda* (#:key inputs #:allow-other-keys)
4679 (setenv "PETSC_DIR" 4678 ;; Define path to PETSc installation.
4680 (assoc-ref inputs "petsc-openmpi")))) 4679 (setenv "PETSC_DIR"
4681 (add-before 'check 'mpi-setup 4680 (assoc-ref inputs "petsc-openmpi"))))
4682 #$%openmpi-setup) 4681 (add-before 'check 'mpi-setup #$%openmpi-setup)
4683 (replace 'check 4682 (replace 'check
4684 (lambda* (#:key tests? #:allow-other-keys) 4683 (lambda* (#:key tests? #:allow-other-keys)
4685 (when tests? 4684 (when tests?
4686 (invoke "python" "test/runtests.py"))))))) 4685 (invoke "python" "test/runtests.py")))))))
4687 (native-inputs (list python-cython)) 4686 (native-inputs (list python-cython python-setuptools))
4688 (inputs (list petsc-openmpi python-numpy)) 4687 (inputs (list petsc-openmpi python-numpy))
4689 (home-page "https://bitbucket.org/petsc/petsc4py/") 4688 (home-page "https://bitbucket.org/petsc/petsc4py/")
4690 (synopsis "Python bindings for PETSc") 4689 (synopsis "Python bindings for PETSc")