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_clib.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_clib.py')
-rw-r--r-- | numpy/distutils/command/build_clib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py index 68f52b26e..d9cfca73e 100644 --- a/numpy/distutils/command/build_clib.py +++ b/numpy/distutils/command/build_clib.py @@ -177,6 +177,10 @@ class build_clib(old_build_clib): raise DistutilsError("library %s has Fortran sources"\ " but no Fortran compiler found" % (lib_name)) + if fcompiler is not None: + fcompiler.extra_f77_compile_args = build_info.get('extra_f77_compile_args') or [] + fcompiler.extra_f90_compile_args = build_info.get('extra_f90_compile_args') or [] + macros = build_info.get('macros') include_dirs = build_info.get('include_dirs') if include_dirs is None: |