[Numpy-svn] r6347 - trunk/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Fri Feb 6 08:37:09 CST 2009


Author: pearu
Date: 2009-02-06 08:36:58 -0600 (Fri, 06 Feb 2009)
New Revision: 6347

Modified:
   trunk/numpy/distutils/system_info.py
Log:
Fix a bug: python system_info.py failed because _pkg_config_info defined section to be None.

Modified: trunk/numpy/distutils/system_info.py
===================================================================
--- trunk/numpy/distutils/system_info.py	2009-02-06 06:31:11 UTC (rev 6346)
+++ trunk/numpy/distutils/system_info.py	2009-02-06 14:36:58 UTC (rev 6347)
@@ -400,8 +400,9 @@
         self.files.extend(get_standard_file('.numpy-site.cfg'))
         self.files.extend(get_standard_file('site.cfg'))
         self.parse_config_files()
-        self.search_static_first = self.cp.getboolean(self.section,
-                                                      'search_static_first')
+        if self.section is not None:
+            self.search_static_first = self.cp.getboolean(self.section,
+                                                          'search_static_first')
         assert isinstance(self.search_static_first, int)
 
     def parse_config_files(self):



More information about the Numpy-svn mailing list