Thanks John, Your help is very much appreciated - my f2py finally recognises my fortran compiler - I'm very relieved!
> > That won't match the guff your f95 puts out. The "!)" appears *after* > the version number. See below. > > |>>> import re > |>>> guff = 'G95 (GCC 4.0.3 (g95 0.90!) Aug 22 2006) etc etc' > |>>> vp1 = r'G95.*\(GCC 4.0.3 \(g95!\) (?P<version>.*)\).*' > |>>> vp2 = r'G95.*\(GCC 4.0.3 \(g95 (?P<version>.*)!\).*' I changed my g95 file so that version_pattern was correct. > > > THE LINE ABOVE WAS ORIGINALLY: > > version_pattern = r'G95.*\(experimental \(g95!\) > > (?P<version.*)\).*' > > No it wasn't. It would have had a ">" after "version" :-) oops! Many thanks again, Sile -- http://mail.python.org/mailman/listinfo/python-list