mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
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>
This commit is contained in:
parent
95d9fd22d8
commit
e640aa6acb
1 changed files with 20 additions and 21 deletions
|
|
@ -4663,28 +4663,27 @@ can return results in exact arithmetic.")
|
|||
(name "python-petsc4py")
|
||||
(version "3.24.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "petsc4py" version))
|
||||
(sha256
|
||||
(base32
|
||||
"06wi2r43drlfj3hml5392pckn2n99rjfb1p1hz75n3d84z5jrj9x"))))
|
||||
(build-system python-build-system)
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "petsc4py" version))
|
||||
(sha256
|
||||
(base32 "06wi2r43drlfj3hml5392pckn2n99rjfb1p1hz75n3d84z5jrj9x"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'build 'set-PETSC_DIR
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; Define path to PETSc installation.
|
||||
(setenv "PETSC_DIR"
|
||||
(assoc-ref inputs "petsc-openmpi"))))
|
||||
(add-before 'check 'mpi-setup
|
||||
#$%openmpi-setup)
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "python" "test/runtests.py")))))))
|
||||
(native-inputs (list python-cython))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'build 'set-PETSC_DIR
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; Define path to PETSc installation.
|
||||
(setenv "PETSC_DIR"
|
||||
(assoc-ref inputs "petsc-openmpi"))))
|
||||
(add-before 'check 'mpi-setup #$%openmpi-setup)
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "python" "test/runtests.py")))))))
|
||||
(native-inputs (list python-cython python-setuptools))
|
||||
(inputs (list petsc-openmpi python-numpy))
|
||||
(home-page "https://bitbucket.org/petsc/petsc4py/")
|
||||
(synopsis "Python bindings for PETSc")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue