diff options
author | Markus Kowalewski <markus.kowalewski.uu@gmail.com> | 2018-01-26 18:26:22 -0800 |
---|---|---|
committer | Markus Kowalewski <markus.kowalewski.uu@gmail.com> | 2018-01-26 18:46:07 -0800 |
commit | aa83877cf874f38d998262e25e5cf1e547181e2f (patch) | |
tree | 218176e8487227748e53d1eeacc13c803b1e9775 /pkgs/development/python-modules/mpi4py/default.nix | |
parent | 58765282f821216795a75c5cc130a75a02120df8 (diff) |
mpi4py/h5py: fix test to run reliably with openmpi-3
Diffstat (limited to 'pkgs/development/python-modules/mpi4py/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mpi4py/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/mpi4py/default.nix b/pkgs/development/python-modules/mpi4py/default.nix index fcbca62ff9dfe..9329d386099c5 100644 --- a/pkgs/development/python-modules/mpi4py/default.nix +++ b/pkgs/development/python-modules/mpi4py/default.nix @@ -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 = |