summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2011-08-16 23:33:32 +0300
committerPearu Peterson <pearu.peterson@gmail.com>2011-08-16 23:33:32 +0300
commit43862759384a86cb4a95e8adb4d39fa1522acb28 (patch)
tree4dbb7dc5e1cdf4d1f67eb97a1c6b84246e1dee9d /numpy/distutils/command/build_ext.py
parent78f7542add429689465c79d2d2f2042c38239672 (diff)
downloadnumpy-43862759384a86cb4a95e8adb4d39fa1522acb28.tar.gz
Introduce new options extra_f77_compiler_args and extra_f90_compiler_args to Configuration.add_extension. Configuration.add_library, and Extension. These options allow specifying extra compile options for compiling Fortran sources within a setup.py file.
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r--numpy/distutils/command/build_ext.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index 840d43716..f63d5249c 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -299,6 +299,9 @@ class build_ext (old_build_ext):
fcompiler = self._f77_compiler
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 []
cxx_compiler = self._cxx_compiler
# check for the availability of required compilers