[Numpy-svn] r4169 - branches/numpy.scons/numpy/distutils/scons

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Oct 10 03:20:39 EDT 2007


Author: cdavid
Date: 2007-10-10 02:20:31 -0500 (Wed, 10 Oct 2007)
New Revision: 4169

Modified:
   branches/numpy.scons/numpy/distutils/scons/numpyenv.py
Log:
More work for sunos

Modified: branches/numpy.scons/numpy/distutils/scons/numpyenv.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/numpyenv.py	2007-10-10 07:07:03 UTC (rev 4168)
+++ branches/numpy.scons/numpy/distutils/scons/numpyenv.py	2007-10-10 07:20:31 UTC (rev 4169)
@@ -26,19 +26,18 @@
 def is_cc_suncc(fullpath):
     """Return true if the compiler is suncc."""
     # I wish there was a better way: we launch suncc -V, read the output, and
-    # returns true if Sun is found in the output. We cannot check the status code, because
+    # returns true if Sun is found in the output. We cannot check the status
+    # code, because the compiler does not seem to have a way to do nothing
+    # while returning success (0).
     
     import os
     import re
     suncc = re.compile('Sun C')
     # Redirect stderr to stdout
     cmd = fullpath + ' -V 2>&1'
-    print "Testing suncc with command %s..." % cmd
     out = os.popen(cmd)
     cnt = out.read()
-    print "content is %s" % cnt
     st = out.close()
-    print "st is %d" % st
 
     return suncc.search(cnt)
 
@@ -126,7 +125,7 @@
         env['ENV']['HOME'] = os.environ['HOME']
     except KeyError:
         pass
-    #print env.Dump()
+    print env.Dump('TOOLS')
     #print Environment().Dump('TOOLS')
     # Adding custom builder
     env['BUILDERS']['NumpySharedLibrary'] = NumpySharedLibrary




More information about the Numpy-svn mailing list