Andrew Jaffe wrote:
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!
Also, note that you can override the get_version() method entirely, if it's easier to do grab the version using something other than a regex. You can look at hpux.py and ibm.py for examples. -- Robert Kern robert.kern@gmail.com "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco