diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-28 18:06:44 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-28 19:23:54 +0100 |
| commit | 9cd4bdd30a991a524111d2a88592dd3c59fb8eaf (patch) | |
| tree | 352ff9ba030b48f51ed2ebd174a94f086bd5754d /gnu | |
| parent | c608175c5d6fd750c3bb812142016679821c2bfd (diff) | |
gnu: python-mpi4py: Update to 4.1.0.
* gnu/packages/mpi.scm (python-mpi4py): Update to 4.1.0.
[arguments]<#:phases>: Add 'check phase replacement.
<#:test-flags>: Set them.
[native-inputs]: Replace python-cython-0 by python-cython.
Change-Id: I8d1ab87bdb27607fe73c1865fd5fa3c174421840
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/mpi.scm | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 694aac33546..ea5cc62b396 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -530,7 +530,7 @@ only provides @code{MPI_THREAD_FUNNELED}."))) (define-public python-mpi4py (package (name "python-mpi4py") - (version "3.1.4") + (version "4.1.0") (source (origin (method git-fetch) @@ -539,21 +539,31 @@ only provides @code{MPI_THREAD_FUNNELED}."))) (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1iy6087w7r2ip2kzinvfvjvqy7idbk0jn9ing44q1ggmgk2kx8sc")))) + (base32 "1r4n2d3nacpa6sq18jp0xk4a81ha0iipgvlsdv0bhfmdvgpv2vqy")))) (build-system pyproject-build-system) (arguments (list + #:test-flags + #~(list ;; MPI errors are unrecoverable. + "--ignore=test/test_spawn.py" + "--ignore=test/test_util_pool.py" + "--ignore=demo/futures/test_futures.py") #:phases #~(modify-phases %standard-phases (add-after 'build 'mpi-setup #$%openmpi-setup) - (add-before 'check 'pre-check - (lambda _ - ;; Skip BaseTestSpawn class (causes error 'ompi_dpm_dyn_init() - ;; failed --> Returned "Unreachable"' in chroot environment). - (substitute* "test/test_spawn.py" - (("unittest.skipMPI\\('openmpi\\(<3.0.0\\)'\\)") - "unittest.skipMPI('openmpi')"))))))) - (native-inputs (list python-cython-0 python-pytest python-setuptools)) + (add-before 'check 'pre-check + (lambda _ + ;; Skip BaseTestSpawn class (causes error 'ompi_dpm_dyn_init() + ;; failed --> Returned "Unreachable"' in chroot environment). + (substitute* "test/test_spawn.py" + (("unittest.skipMPI\\('openmpi\\(<3.0.0\\)'\\)") + "unittest.skipMPI('openmpi')")))) + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (if tests? + (apply invoke "mpiexec" "pytest" "-vv" test-flags) + (format #t "test suite not run~%"))))))) + (native-inputs (list python-cython python-pytest python-setuptools)) (inputs (list openmpi)) (properties '((updater-extra-inputs "openmpi"))) (home-page "https://github.com/mpi4py/mpi4py") |
