py-mpi4py: Added build argument for mpicc path (#12191)

* added build arguments to resolve error with Cray-MPICH

* fixed indentation
This commit is contained in:
TiffanyAnn 2019-08-02 17:09:37 -07:00 committed by Adam J. Stewart
parent 53bd964a59
commit ff15f61443

View file

@ -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]