From: James G. <jg...@ca...> - 2006-05-31 13:56:24
|
numpy.distutils seems to have difficulties detecting the current version of the g95 compiler. I believe this is because the output of `g95 --version` has changed. The patch below seems to correct the problem (i.e. it now works with the latest g95) but my regexp foo is very weak so it may not be correct/optimal. --- /usr/lib64/python2.3/site-packages/numpy/distutils/fcompiler/g95.py 2006-01-06 21:29:40.000000000 +0000 +++ /home/jgraham/lib64/python/numpy/distutils/fcompiler/g95.py 2006-05-26 12:49:50.000000000 +0100 @@ -9,7 +9,7 @@ class G95FCompiler(FCompiler): compiler_type = 'g95' - version_pattern = r'G95.*\(experimental\) \(g95!\) (?P<version>.*)\).*' + version_pattern = r'G95.*(?:\(experimental\))? \(g95!\) (?P<version>.*)\).*' executables = { 'version_cmd' : ["g95", "--version"], -- "You see stars that clear have been dead for years But the idea just lives on..." -- Bright Eyes |