From ff15f614430c07d84db13f68ed861a8211703f85 Mon Sep 17 00:00:00 2001 From: TiffanyAnn Date: Fri, 2 Aug 2019 17:09:37 -0700 Subject: py-mpi4py: Added build argument for mpicc path (#12191) * added build arguments to resolve error with Cray-MPICH * fixed indentation --- var/spack/repos/builtin/packages/py-mpi4py/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-mpi4py/package.py b/var/spack/repos/builtin/packages/py-mpi4py/package.py index 92e6cbb175..25b4d96a46 100644 --- a/var/spack/repos/builtin/packages/py-mpi4py/package.py +++ b/var/spack/repos/builtin/packages/py-mpi4py/package.py @@ -26,3 +26,6 @@ class PyMpi4py(PythonPackage): depends_on('py-setuptools', type='build') depends_on('mpi') depends_on('py-cython', when='@develop', type='build') + + def build_args(self, spec, prefix): + return ['--mpicc=%s -shared' % spec['mpi'].mpicc] -- cgit v1.2.3-70-g09d2