[Numpy-svn] r4431 - branches/numpy.scons/numpy/distutils/scons/core

numpy-svn@scip... numpy-svn@scip...
Sat Nov 10 20:57:20 CST 2007


Author: cdavid
Date: 2007-11-10 20:57:05 -0600 (Sat, 10 Nov 2007)
New Revision: 4431

Modified:
   branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
Log:
Scons environment can now be initialized wo fortran compiler

Modified: branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py	2007-11-11 02:50:20 UTC (rev 4430)
+++ branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py	2007-11-11 02:57:05 UTC (rev 4431)
@@ -208,9 +208,13 @@
         # XXX: really have to understand how fortran compilers work in scons...
         env['F77'] = env['_FORTRAND']
     else:
-	raise NotImplementedError('FIXME: Support for env wo fcompiler not tested yet !')
-        #t = Tool(FindTool(DEF_FORTRAN_COMPILERS))
-        #t(env)
+	#raise NotImplementedError('FIXME: Support for env wo fcompiler not tested yet !')
+	def_fcompiler =  FindTool(DEF_FORTRAN_COMPILERS, env)
+	if def_fcompiler:
+		t = Tool(def_fcompiler)
+		t(env)
+        else:
+		print "========== NO FORTRAN COMPILER FOUND ==========="
 
     # XXX: Really, we should use our own subclass of Environment, instead of
     # adding Numpy* functions !



More information about the Numpy-svn mailing list