diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-25 11:21:35 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-25 11:21:35 +0000 |
commit | 1222a4a979ff0d960be0e172c2947f9cce58d5fa (patch) | |
tree | 0b6582e6c0939f8f394dd3a571a6774743c7f05d /numpy/distutils/fcompiler/gnu.py | |
parent | c3c9401759b9d7e9282b7745ea1ee600c1169cfd (diff) | |
download | numpy-1222a4a979ff0d960be0e172c2947f9cce58d5fa.tar.gz |
Don't use _nt_quote_args as exec_command should
handle spaces in program path. This fixes building
numpy/scipy on Windows using mingw32 g77 with full
path=C:\Program Files\MinGW\g77.exe.
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index cc6e90f0c..dcb2723f6 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -46,6 +46,7 @@ class GnuFCompiler(FCompiler): # GNU Fortran (GCC) 3.3.3 (Debian 20040401) # GNU Fortran 0.5.25 20010319 (prerelease) # Redhat: GNU Fortran (GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) + # GNU Fortran (GCC) 3.4.2 (mingw-special) possible_executables = ['g77', 'f77'] executables = { @@ -325,6 +326,11 @@ if __name__ == '__main__': compiler = GnuFCompiler() compiler.customize() print compiler.get_version() - compiler = Gnu95FCompiler() - compiler.customize() - print compiler.get_version() + raw_input('Press ENTER to continue...') + try: + compiler = Gnu95FCompiler() + compiler.customize() + print compiler.get_version() + except Exception, msg: + print msg + raw_input('Press ENTER to continue...') |