From caa1a5cec7c0572284a9b9ee27b5004af80a853f Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Fri, 4 Feb 2022 04:22:11 -0600 Subject: [PATCH] py-mpi4py: fix install_options (#28759) --- var/spack/repos/builtin/packages/py-mpi4py/package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/var/spack/repos/builtin/packages/py-mpi4py/package.py b/var/spack/repos/builtin/packages/py-mpi4py/package.py index 9d341278f9..9cd5949fc3 100644 --- a/var/spack/repos/builtin/packages/py-mpi4py/package.py +++ b/var/spack/repos/builtin/packages/py-mpi4py/package.py @@ -32,6 +32,7 @@ class PyMpi4py(PythonPackage): depends_on('py-cython@0.27.0:', when='@master', type='build') depends_on('py-3to2', when='@3.1: ^python@:2', type='build') + @when('@3.1:') def install_options(self, spec, prefix): return ['--mpicc=%s -shared' % spec['mpi'].mpicc]