python3Packages.mpi4py: use mpiCheckPhaseHook
This commit is contained in:
parent
32db66c9f5
commit
690da58dec
|
@ -1,4 +1,6 @@
|
|||
{ lib, fetchPypi, fetchpatch, python, buildPythonPackage, mpi, openssh }:
|
||||
{ lib, fetchPypi, fetchpatch, python, buildPythonPackage
|
||||
, mpi, mpiCheckPhaseHook, openssh
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mpi4py";
|
||||
|
@ -33,10 +35,6 @@ buildPythonPackage rec {
|
|||
# sometimes packages specify where files should be installed outside the usual
|
||||
# python lib prefix, we override that back so all infrastructure (setup hooks)
|
||||
# work as expected
|
||||
|
||||
# Needed to run the tests reliably. See:
|
||||
# https://bitbucket.org/mpi4py/mpi4py/issues/87/multiple-test-errors-with-openmpi-30
|
||||
export OMPI_MCA_rmaps_base_oversubscribe=yes
|
||||
'';
|
||||
|
||||
setupPyBuildFlags = ["--mpicc=${mpi}/bin/mpicc"];
|
||||
|
@ -45,7 +43,7 @@ buildPythonPackage rec {
|
|||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = [ openssh ];
|
||||
nativeCheckInputs = [ openssh mpiCheckPhaseHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for the Message Passing Interface standard";
|
||||
|
|
Loading…
Reference in a new issue