[Numpy-svn] r4058 - numpy.sunperf/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Thu Sep 20 04:46:04 CDT 2007


Author: cdavid
Date: 2007-09-20 04:45:57 -0500 (Thu, 20 Sep 2007)
New Revision: 4058

Modified:
   numpy.sunperf/numpy/distutils/sunccompiler.py
Log:
fix missing sys import for sun C compiler

Modified: numpy.sunperf/numpy/distutils/sunccompiler.py
===================================================================
--- numpy.sunperf/numpy/distutils/sunccompiler.py	2007-09-20 08:33:24 UTC (rev 4057)
+++ numpy.sunperf/numpy/distutils/sunccompiler.py	2007-09-20 09:45:57 UTC (rev 4058)
@@ -1,11 +1,13 @@
 """Sun studio compiler (both solaris and linux)."""
+import sys
+
 from distutils.unixccompiler import UnixCCompiler
 from numpy.distutils.exec_command import find_executable
 
 class SunCCompiler(UnixCCompiler):
     """ A modified Sun compiler compatible with an gcc built Python. """
     compiler_type = 'sun'
-    if platform[:5] == 'linux':
+    if sys.platform[:5] == 'linux':
         # Use suncc instead of cc, because it makes it more obvious to follow
         # what's going on when several compilers are available on linux.
         cc_exe = 'suncc'



More information about the Numpy-svn mailing list