forked from clawpack/pyclaw
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request clawpack#103 from ahmadia/build_system
Makefile queries f2py to set FC and FFLAGS
- Loading branch information
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
def get_fcompiler(): | ||
import numpy.distutils.fcompiler | ||
numpy.distutils.log.set_verbosity(-1) | ||
fc = numpy.distutils.fcompiler.new_fcompiler() | ||
fc.customize() | ||
return fc | ||
|
||
if __name__=="__main__": | ||
fc = get_fcompiler() | ||
import sys | ||
if sys.argv[1] == 'get_compiler': | ||
print fc.compiler_f77[0] | ||
elif sys.argv[1] == 'get_flags': | ||
print ' '.join(fc.compiler_f77[1:]) |