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
On Wed, 31 May 2006, James Graham wrote:
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.
Could you send me the output of g95 --version for reference? Thanks, Pearu
Pearu Peterson wrote:
On Wed, 31 May 2006, James Graham wrote:
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.
Could you send me the output of
g95 --version
for reference?
$ g95 --version G95 (GCC 4.0.3 (g95!) May 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 -- "You see stars that clear have been dead for years But the idea just lives on..." -- Bright Eyes
On Wed, 31 May 2006, James Graham wrote:
Pearu Peterson wrote:
Could you send me the output of
g95 --version
for reference?
$ g95 --version
G95 (GCC 4.0.3 (g95!) May 22 2006)
Thanks, I have applied the patch with modifications to numpy svn. Let me know if it fails to work. Pearu
participants (2)
-
James Graham
-
Pearu Peterson