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

numpy-svn@scip... numpy-svn@scip...
Fri Feb 6 08:39:01 CST 2009


Author: pearu
Date: 2009-02-06 08:38:57 -0600 (Fri, 06 Feb 2009)
New Revision: 6348

Modified:
   trunk/numpy/distutils/system_info.py
Log:
Fix another bug, see last commit.

Modified: trunk/numpy/distutils/system_info.py
===================================================================
--- trunk/numpy/distutils/system_info.py	2009-02-06 14:36:58 UTC (rev 6347)
+++ trunk/numpy/distutils/system_info.py	2009-02-06 14:38:57 UTC (rev 6348)
@@ -408,7 +408,8 @@
     def parse_config_files(self):
         self.cp.read(self.files)
         if not self.cp.has_section(self.section):
-            self.cp.add_section(self.section)
+            if self.section is not None:
+                self.cp.add_section(self.section)
 
     def calc_libraries_info(self):
         libs = self.get_libraries()



More information about the Numpy-svn mailing list