summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-05-02 20:27:27 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-05-02 20:27:27 -0700
commit086721ce8d760feb633ff457a75982fd887fe440 (patch)
tree7ff69ceeb24af36da6b757d612bfe9df662f2244 /numpy/distutils
parent962f4298fcba3575335831c5b07abefd4eea4859 (diff)
parent63d9a9b468cc0c15325b1320cf13409b8d2210af (diff)
downloadnumpy-086721ce8d760feb633ff457a75982fd887fe440.tar.gz
Merge pull request #3261 from keflavich/f77_ext_bugfix
bugfix in build_ext: check that ext has an attribute before trying to us it
Diffstat (limited to 'numpy/distutils')
-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 48e578b66..97bfa1613 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -297,8 +297,8 @@ class build_ext (old_build_ext):
else: # in case ext.language is c++, for instance
fcompiler = self._f90_compiler or self._f77_compiler
if fcompiler is not None:
- fcompiler.extra_f77_compile_args = ext.extra_f77_compile_args or []
- fcompiler.extra_f90_compile_args = ext.extra_f90_compile_args or []
+ fcompiler.extra_f77_compile_args = (ext.extra_f77_compile_args or []) if hasattr(ext,'extra_f77_compile_args') else []
+ fcompiler.extra_f90_compile_args = (ext.extra_f90_compile_args or []) if hasattr(ext,'extra_f90_compile_args') else []
cxx_compiler = self._cxx_compiler
# check for the availability of required compilers