From 6421e2a557b5e4c34db7d5908d6508966cb481e0 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 19 Nov 2024 12:38:19 +0100 Subject: [PATCH] mpich: remove now unneeded method --- .../repos/builtin/packages/mpich/package.py | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py index ff440dccd93..e2fbf3392cd 100644 --- a/var/spack/repos/builtin/packages/mpich/package.py +++ b/var/spack/repos/builtin/packages/mpich/package.py @@ -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")