From 1222a4a979ff0d960be0e172c2947f9cce58d5fa Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Wed, 25 Jul 2007 11:21:35 +0000 Subject: 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. --- numpy/distutils/fcompiler/gnu.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'numpy/distutils/fcompiler/gnu.py') 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...') -- cgit v1.2.1