py-mpi4py: fix install_options (#28759)

This commit is contained in:
Adam J. Stewart 2022-02-04 04:22:11 -06:00 committed by GitHub
parent 172ec0e3a1
commit caa1a5cec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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