openmpi: raise an error without Fortran compiler

This commit is contained in:
Denis Davydov 2016-06-19 11:59:29 +02:00
parent 1cc04cff27
commit cf4a34c657

View File

@ -121,6 +121,13 @@ def verbs(self):
return 'verbs'
def install(self, spec, prefix):
# As of 06/2016 there is no mechanism to specify that packages which
# depends on MPI need C or/and Fortran implementation. For now
# require both.
if (self.compiler.f77 is None) or (self.compiler.fc is None):
raise InstallError('OpenMPI requires both C and Fortran ',
'compilers!')
config_args = ["--prefix=%s" % prefix,
"--with-hwloc=%s" % spec['hwloc'].prefix,
"--enable-shared",