me
/
guix
Archived
1
0
Fork 0

gnu: python-petsc4py: Fix build with python 3.8.

* gnu/packages/maths.scm (python-petsc4py)[source]: Add snippet.
[native-inputs]: New field.
master
Paul Garlick 2020-11-11 09:02:26 +00:00
parent e3ae313478
commit c6843f1751
No known key found for this signature in database
GPG Key ID: AAC7E891896B568A
1 changed files with 14 additions and 1 deletions

View File

@ -2470,7 +2470,18 @@ scientific applications modeled by partial differential equations.")
(uri (pypi-uri "petsc4py" version))
(sha256
(base32
"1rm1qj5wlkhxl39by9n78lh3gbmii31wsnb8j1rr5hvfr5xgbx2q"))))
"1rm1qj5wlkhxl39by9n78lh3gbmii31wsnb8j1rr5hvfr5xgbx2q"))
(modules '((guix build utils)))
(snippet
'(begin
;; Ensure source file is regenerated in the build phase.
(delete-file "src/petsc4py.PETSc.c")
;; Remove legacy GC code. See
;; https://bitbucket.org/petsc/petsc4py/issues/125.
(substitute* "src/PETSc/cyclicgc.pxi"
((".*gc_refs.*") "" )
((".*PyGC_Head.*") ""))
#t))))
(build-system python-build-system)
(arguments
`(#:phases
@ -2482,6 +2493,8 @@ scientific applications modeled by partial differential equations.")
#t))
(add-before 'check 'mpi-setup
,%openmpi-setup))))
(native-inputs
`(("python-cython" ,python-cython)))
(inputs
`(("petsc" ,petsc-openmpi)
("python-numpy" ,python-numpy)))