summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiffanyAnn <TiffanyAnn@users.noreply.github.com>2019-08-02 17:09:37 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-08-02 19:09:37 -0500
commitff15f614430c07d84db13f68ed861a8211703f85 (patch)
tree9cf75b52d904d007fff16a795a916931a759cd5e
parent53bd964a59c0bff17476b51c4ec6ac76636eaad6 (diff)
downloadspack-ff15f614430c07d84db13f68ed861a8211703f85.tar.gz
spack-ff15f614430c07d84db13f68ed861a8211703f85.tar.bz2
spack-ff15f614430c07d84db13f68ed861a8211703f85.tar.xz
spack-ff15f614430c07d84db13f68ed861a8211703f85.zip
py-mpi4py: Added build argument for mpicc path (#12191)
* added build arguments to resolve error with Cray-MPICH * fixed indentation
-rw-r--r--var/spack/repos/builtin/packages/py-mpi4py/package.py3
1 files changed, 3 insertions, 0 deletions
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]