diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2011-08-16 23:33:32 +0300 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-20 17:19:08 -0600 |
commit | a90754d673aa4af4d605a657134d76422c390510 (patch) | |
tree | a7f226d4281c7b5501970e413ca14c47975a08e9 /numpy/distutils/command/build_ext.py | |
parent | ea529d4081a38acf85a759dda25e3edf0bd307dc (diff) | |
download | numpy-a90754d673aa4af4d605a657134d76422c390510.tar.gz |
ENH: Introduce new options extra_f77_compile_args and extra_f90_compile_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.py | 3 |
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 |