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

numpy-svn@scip... numpy-svn@scip...
Wed Oct 10 01:06:10 CDT 2007


Author: cdavid
Date: 2007-10-10 01:06:03 -0500 (Wed, 10 Oct 2007)
New Revision: 4167

Modified:
   branches/numpy.scons/numpy/distutils/scons/numpyenv.py
Log:
Correct suncc detection in scons env

Modified: branches/numpy.scons/numpy/distutils/scons/numpyenv.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/numpyenv.py	2007-10-10 05:57:06 UTC (rev 4166)
+++ branches/numpy.scons/numpy/distutils/scons/numpyenv.py	2007-10-10 06:06:03 UTC (rev 4167)
@@ -27,6 +27,8 @@
     """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 this succeeds and Sun is found in the output.
+    
+    print "Testing suncc..."
     import os
     import re
     suncc = re.compile('[Ss][Uu][Nn]')
@@ -34,7 +36,9 @@
     cmd = fullpath + ' -V 2>1'
     out = os.popen(cmd)
     cnt = out.read()
+    print "content is %s" % cnt
     st = out.close()
+    print "st is %d" % st
 
     return st == 0 and suncc.search(cnt)
 



More information about the Numpy-svn mailing list