mpich: remove now unneeded method

This commit is contained in:
Massimiliano Culpo 2024-11-19 12:38:19 +01:00
parent 29872d5fab
commit 6421e2a557
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -493,25 +493,6 @@ def autoreconf(self, spec, prefix):
bash = which("bash")
bash("./autogen.sh")
@run_before("autoreconf")
def die_without_fortran(self):
# Until we can pass variants such as +fortran through virtual
# dependencies depends_on('mpi'), require Fortran compiler to
# avoid delayed build errors in dependents.
# The user can work around this by disabling Fortran explicitly
# with ~fortran
f77 = self.compiler.f77
fc = self.compiler.fc
fortran_missing = f77 is None or fc is None
if "+fortran" in self.spec and fortran_missing:
raise InstallError(
"mpich +fortran requires Fortran compilers. Configure "
"Fortran compiler or disable Fortran support with ~fortran"
)
def configure_args(self):
spec = self.spec
config_args = [
@ -541,8 +522,7 @@ def configure_args(self):
)
)
if "~fortran" in spec:
config_args.append("--disable-fortran")
config_args.extend(self.enable_or_disable("fortran"))
if "+slurm" in spec:
config_args.append("--with-slurm=yes")