py-scipy: print error message if no Fortran compiler is available (#34439)
This commit is contained in:
parent
9517dab409
commit
57383a2294
@ -142,6 +142,11 @@ def set_blas_lapack(self):
|
||||
|
||||
@run_before("install")
|
||||
def set_fortran_compiler(self):
|
||||
if self.compiler.f77 is None or self.compiler.fc is None:
|
||||
raise InstallError(
|
||||
"py-scipy requires Fortran compilers. Configure Fortran compiler to proceed."
|
||||
)
|
||||
|
||||
if self.spec.satisfies("%fj"):
|
||||
with open("setup.cfg", "w") as f:
|
||||
f.write("[config_fc]\n")
|
||||
|
Loading…
Reference in New Issue
Block a user