Thanks for your reply, Sorry about the last post - pasting from another post didn't work so well...
The --version output from my f95 compiler is as follows: C:\>g95 --version G95 (GCC 4.0.3 (g95 0.90!) Aug 22 2006) Copyright (C) 2002-2005 Free Software Foundation, Inc. G95 comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of G95 under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING The f95.py file is located under Numpy as follows....... C:\Program Files\ESI_Software\UTILS_2006\Python2.3_CFD\Lib\site-packages\numpy\distutils\fcompiler\f95.py import os import sys from numpy.distutils.cpuinfo import cpu from numpy.distutils.fcompiler import FCompiler class G95FCompiler(FCompiler): compiler_type = 'g95' version_pattern = r'G95.*\(GCC 4.0.3 \(g95!\) (?P<version>.*)\).*' THE LINE ABOVE WAS ORIGINALLY: version_pattern = r'G95.*\(experimental \(g95!\) (?P<version.*)\).*' executables = { 'version_cmd' : ["g95", "--version"], 'compiler_f77' : ["g95", "-ffixed-form"], 'compiler_fix' : ["g95", "-ffixed-form"], 'compiler_f90' : ["g95"], 'linker_so' : ["g95","-shared"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } pic_flags = ['-fpic'] module_dir_switch = '-fmod=' module_include_switch = '-I' def get_flags(self): return ['-fno-second-underscore'] def get_flags_opt(self): return ['-O'] def get_flags_debug(self): return ['-g'] if __name__ == '__main__': from distutils import log log.set_verbosity(2) from numpy.distutils.fcompiler import new_fcompiler #compiler = new_fcompiler(compiler='g95') compiler = G95FCompiler() compiler.customize() print compiler.get_version() The output from f2py when I check the fortran compilers is......... C:\>f2py -c --help-fcompiler ................... Could not locate executable f95 Executable f95 does not exist customize VastFCompiler Could not locate executable vf90 Executable vf90 does not exist customize GnuFCompiler customize IbmFCompiler Could not locate executable xlf Executable xlf does not exist customize Gnu95FCompiler Could not locate executable f95 Executable f95 does not exist Could not locate executable f95 Executable f95 does not exist Could not locate executable f95 Executable f95 does not exist customize IntelVisualFCompiler Could not locate executable ifl Executable ifl does not exist customize G95FCompiler Couldn't match compiler version for 'G95 (GCC 4.0.3 (g95 0.90!) Aug 22 2006)\nCo pyright (C) 2002-2005 Free Software Foundation, Inc.\n\nG95 comes with NO WARRAN TY, to the extent permitted by law.\nYou may redistribute copies of G95\nunder the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING' customize IntelItaniumFCompiler Could not locate executable efc Executable efc does not exist customize PGroupFCompiler Could not locate executable pgf77 Executable pgf77 does not exist customize LaheyFCompiler Could not locate executable lf95 Executable lf95 does not exist customize CompaqVisualFCompiler customize MipsFCompiler customize HPUXFCompiler customize IntelItaniumVisualFCompiler Could not locate executable efl Executable efl does not exist customize IntelEM64TFCompiler Could not locate executable efc Executable efc does not exist List of available Fortran compilers: --fcompiler=compaqv DIGITAL|Compaq Visual Fortran Compiler (6.5) --fcompiler=gnu GNU Fortran Compiler (3.4.5) I hope that makes it a bit clearer, Thanks, Sile -- http://mail.python.org/mailman/listinfo/python-list