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

numpy-svn@scip... numpy-svn@scip...
Thu Sep 20 07:36:10 CDT 2007


Author: cdavid
Date: 2007-09-20 07:36:04 -0500 (Thu, 20 Sep 2007)
New Revision: 4059

Modified:
   numpy.sunperf/numpy/distutils/system_info.py
Log:
Remove mtsk dependency for sunperf on solaris

Modified: numpy.sunperf/numpy/distutils/system_info.py
===================================================================
--- numpy.sunperf/numpy/distutils/system_info.py	2007-09-20 09:45:57 UTC (rev 4058)
+++ numpy.sunperf/numpy/distutils/system_info.py	2007-09-20 12:36:04 UTC (rev 4059)
@@ -919,18 +919,19 @@
         info = {}
         dict_append(info,**sunperf)
 
-	# Look for mtsk: we basically assume that mtsk is here once sunperf is
-	# detected.
-        mtsk = None
-        for d in lib_dirs:
-            mtsk = self.check_libs2(d,self._lib_sunperf_suplink)
-            if mtsk is not None:
-                break
-        if mtsk is None:
-            return
-        dict_append(info,**mtsk)
+        # Look for mtsk: we basically assume that mtsk is here once sunperf is
+        # detected. There is no need for mtsk for Solaris ?
+        if sys.platform[:5] == 'linux':
+            mtsk = None
+            for d in lib_dirs:
+                mtsk = self.check_libs2(d,self._lib_sunperf_suplink)
+                if mtsk is not None:
+                    break
+            if mtsk is None:
+                return
+            dict_append(info,**mtsk)
 
-	# Now, the info is complete
+        # Now, the info is complete
         dict_append(info,
                     define_macros=[('SCIPY_SUNPERF_H',None)],
                     include_dirs = incl_dirs)



More information about the Numpy-svn mailing list