[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: python-petsc4py: Fix build with python 3.8.
From: |
guix-commits |
Subject: |
branch master updated: gnu: python-petsc4py: Fix build with python 3.8. |
Date: |
Wed, 11 Nov 2020 04:33:44 -0500 |
This is an automated email from the git hooks/post-receive script.
pgarlick pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new c6843f1 gnu: python-petsc4py: Fix build with python 3.8.
c6843f1 is described below
commit c6843f17517afe44a51593bcad1a9d12b296131a
Author: Paul Garlick <pgarlick@tourbillion-technology.com>
AuthorDate: Wed Nov 11 09:02:26 2020 +0000
gnu: python-petsc4py: Fix build with python 3.8.
* gnu/packages/maths.scm (python-petsc4py)[source]: Add snippet.
[native-inputs]: New field.
---
gnu/packages/maths.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index ba46937..295e2dd 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: python-petsc4py: Fix build with python 3.8.,
guix-commits <=