diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2023-01-22 23:26:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 23:26:22 +0100 |
commit | a68f24b441012e9740adabee450a7e98bb72625d (patch) | |
tree | bf9f5bbc6d49702e0176e9a3b362e31dbf714c66 /numpy/distutils/ccompiler.py | |
parent | 3d21a27db036f408ea4d21ac011ac082b49b4aeb (diff) | |
download | numpy-revert-22885-cleanCrackfortran.tar.gz |
Revert "MAINT: `f2py` cleanup (#22885)"revert-22885-cleanCrackfortran
This reverts commit 6b5cd92675139511b4b24ddfe822e96b03700edb.
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r-- | numpy/distutils/ccompiler.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 86201174d..f0487cb64 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -338,8 +338,7 @@ def CCompiler_compile(self, sources, output_dir=None, macros=None, if self.compiler_type=='absoft': obj = cyg2win32(obj) src = cyg2win32(src) - if Path(src).suffix.lower() in COMMON_FIXED_EXTENSIONS \ - and not has_f90_header(src): + if is_f_file(src) and not has_f90_header(src): f77_objects.append((obj, (src, ext))) else: other_objects.append((obj, (src, ext))) |