summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/g95.py
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-05-25 11:41:16 +0000
committercookedm <cookedm@localhost>2007-05-25 11:41:16 +0000
commit5267b3e16654ef326f525fdb9a1287a88396c616 (patch)
tree9e7137815415c08577f5451266cdc70f7caa3ea7 /numpy/distutils/fcompiler/g95.py
parentd11dbc78c0df5055a6ed57285775cc18dbe1721a (diff)
downloadnumpy-5267b3e16654ef326f525fdb9a1287a88396c616.tar.gz
merge from distutils-revamp branch (step 2)
- fcompiler changes. All flags, executables, etc., should be overridable by the user with config_fc (either command line or setup.cfg) or by environment variables
Diffstat (limited to 'numpy/distutils/fcompiler/g95.py')
-rw-r--r--numpy/distutils/fcompiler/g95.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/distutils/fcompiler/g95.py b/numpy/distutils/fcompiler/g95.py
index 8fe79bfbb..7871decb5 100644
--- a/numpy/distutils/fcompiler/g95.py
+++ b/numpy/distutils/fcompiler/g95.py
@@ -6,9 +6,12 @@ import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
-class G95FCompiler(FCompiler):
+compilers = ['G95FCompiler']
+class G95FCompiler(FCompiler):
compiler_type = 'g95'
+ description = 'G95 Fortran Compiler'
+
# version_pattern = r'G95 \((GCC (?P<gccversion>[\d.]+)|.*?) \(g95!\) (?P<version>.*)\).*'
# $ g95 --version
# G95 (GCC 4.0.3 (g95!) May 22 2006)
@@ -17,13 +20,12 @@ class G95FCompiler(FCompiler):
# $ g95 --version
# G95 (GCC 4.0.3 (g95 0.90!) Aug 22 2006)
-
executables = {
- 'version_cmd' : ["g95", "--version"],
+ 'version_cmd' : ["<F90>", "--version"],
'compiler_f77' : ["g95", "-ffixed-form"],
'compiler_fix' : ["g95", "-ffixed-form"],
'compiler_f90' : ["g95"],
- 'linker_so' : ["g95","-shared"],
+ 'linker_so' : ["<F90>","-shared"],
'archiver' : ["ar", "-cr"],
'ranlib' : ["ranlib"]
}