[Numpy-svn] r6408 - branches/coremath/numpy/distutils/command

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Feb 19 04:33:45 EST 2009


Author: cdavid
Date: 2009-02-19 03:33:41 -0600 (Thu, 19 Feb 2009)
New Revision: 6408

Modified:
   branches/coremath/numpy/distutils/command/config.py
Log:
Add our own check_header, since distutils one is broken.

Modified: branches/coremath/numpy/distutils/command/config.py
===================================================================
--- branches/coremath/numpy/distutils/command/config.py	2009-02-19 09:18:21 UTC (rev 6407)
+++ branches/coremath/numpy/distutils/command/config.py	2009-02-19 09:33:41 UTC (rev 6408)
@@ -144,6 +144,12 @@
                                  (body, headers, include_dirs,
                                   libraries, library_dirs, lang))
 
+    def check_header(self, header, include_dirs=None, library_dirs=None, lang='c'):
+        self._check_compiler()
+        return self.try_compile(
+                "/* we need a dummy line to make distutils happy */", 
+                [header], include_dirs)
+
     def check_decl(self, symbol,
                    headers=None, include_dirs=None):
         self._check_compiler()




More information about the Numpy-svn mailing list