[Numpy-discussion] g95 detection not working

Andrew Jaffe a.h.jaffe at gmail.com
Sun Apr 16 12:36:01 CDT 2006


Hi all,

at least on my setup (OS X, Python 2.4.1, latest svn of numpy and 
scipy), config_fc fails to recognize my g95 compiler, which was directly 
downloaded from http://g95.sourceforge.net/ (and always has failed, I 
think). This is because the current version string doesn't conform to 
the regexp pattern; the version string is
"""
G95 (GCC 4.0.3 (g95!) Apr 12 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
"""

I've attached a patch below, although this identifies the version string 
with the date of the release, rather than the gcc version; I'm not sure 
which is the right one to use!

Andrew


--- numpy/distutils/fcompiler/g95.py    (revision 2360)
+++ numpy/distutils/fcompiler/g95.py    (working copy)
@@ -9,7 +9,7 @@
  class G95FCompiler(FCompiler):

      compiler_type = 'g95'
-    version_pattern = r'G95.*\(experimental\) \(g95!\) (?P<version>.*)\).*'
+    version_pattern = r'G95.*\(g95!\) (?P<version>.*)\).*'

      executables = {
          'version_cmd'  : ["g95", "--version"],





More information about the Numpy-discussion mailing list