mpi4py/h5py: fix test to run reliably with openmpi-3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchPypi, python, buildPythonPackage, mpi }:
|
||||
{ stdenv, fetchPypi, python, buildPythonPackage, mpi, openssh }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mpi4py";
|
||||
@@ -28,11 +28,15 @@ 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"];
|
||||
|
||||
buildInputs = [ mpi ];
|
||||
buildInputs = [ mpi openssh ];
|
||||
|
||||
meta = {
|
||||
description =
|
||||
|
||||
Reference in New Issue
Block a user