summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r--numpy/distutils/command/build_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index 6febe9124..83779fe49 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -175,7 +175,7 @@ class build_ext (old_build_ext):
force=self.force,
requiref90=False)
fcompiler = self._f77_compiler
- if fcompiler.get_version():
+ if fcompiler and fcompiler.get_version():
fcompiler.customize(self.distribution)
fcompiler.customize_cmd(self)
fcompiler.show_customization()
@@ -194,7 +194,7 @@ class build_ext (old_build_ext):
force=self.force,
requiref90=True)
fcompiler = self._f90_compiler
- if fcompiler.get_version():
+ if fcompiler and fcompiler.get_version():
fcompiler.customize(self.distribution)
fcompiler.customize_cmd(self)
fcompiler.show_customization()