[Numpy-svn] r4318 - branches/numpy.scons/numpy/distutils/scons

numpy-svn@scip... numpy-svn@scip...
Sun Oct 28 10:49:36 CDT 2007


Author: cdavid
Date: 2007-10-28 10:48:59 -0500 (Sun, 28 Oct 2007)
New Revision: 4318

Modified:
   branches/numpy.scons/numpy/distutils/scons/TODO
   branches/numpy.scons/numpy/distutils/scons/__init__.py
   branches/numpy.scons/numpy/distutils/scons/custom_checkers.py
Log:
Start hacking on Netlib BLAS/LAPACK checker

Modified: branches/numpy.scons/numpy/distutils/scons/TODO
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/TODO	2007-10-26 22:33:14 UTC (rev 4317)
+++ branches/numpy.scons/numpy/distutils/scons/TODO	2007-10-28 15:48:59 UTC (rev 4318)
@@ -1,15 +1,16 @@
 Before True milestone:
-    - improve CheckTypeSize for upstream integration
     - improve BrokenMathlib and Mathlib in core, and make them available to
       everyone
     - show_config implementation : how to do it ?
+    - How to build meta-checkers from simple checkers (for example, BLAS with
+      MKL, ATLAS, Sunperf, etc...) ?
 
 Checker:
     - improve Fortran runtime detection for upstream integration
     - improve Fortran mangling and dummy main detection for upstream
       integration
-    - How to build meta-checkers from simple checkers (for example, BLAS with
-      MKL, ATLAS, Sunperf, etc...) ?
+    - Netlib BLAS and LAPACK checkers with site.cfg overriding
+    - Generic BLAS and LAPACK checker with site.cfg overriding
 
 Builder:
     - Get a PythonExtension builder independant of distutils for upstream
@@ -24,8 +25,6 @@
       g77, gfortran (1st priority), MS and Intel (2d priority), others (3rd:
       sun, aix, etc...)
     - Refactor code for API generation (numpy/core/code_generators) -> Mostly done
-    - Problems of per packages things (config.log, sconsign files, etc....) ->
-      Done !
 
 Documentation:
     - scons / distutils integration

Modified: branches/numpy.scons/numpy/distutils/scons/__init__.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/__init__.py	2007-10-26 22:33:14 UTC (rev 4317)
+++ branches/numpy.scons/numpy/distutils/scons/__init__.py	2007-10-28 15:48:59 UTC (rev 4318)
@@ -2,7 +2,8 @@
 from libinfo_scons import NumpyCheckLib
 from libinfo import get_paths as scons_get_paths
 from custom_checkers import CheckMKL, CheckATLAS, CheckCBLAS, \
-        CheckAccelerate, CheckMKL, CheckSunperf, CheckLAPACK
+        CheckAccelerate, CheckMKL, CheckSunperf, CheckLAPACK, \
+        CheckNetlibBLAS, CheckNetlibLAPACK
 from extension import get_python_inc, get_pythonlib_dir
 from utils import isstring
 from fortran_scons import CheckF77Verbose, CheckF77Clib, CheckF77Mangling

Modified: branches/numpy.scons/numpy/distutils/scons/custom_checkers.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/custom_checkers.py	2007-10-26 22:33:14 UTC (rev 4317)
+++ branches/numpy.scons/numpy/distutils/scons/custom_checkers.py	2007-10-28 15:48:59 UTC (rev 4318)
@@ -249,3 +249,21 @@
             return st
 
     return 0
+
+def CheckNetlibBLAS(context):
+    # XXX: support site.cfg
+    # Get fortran mangling
+    if not CheckF77Mangling(context):
+        return 0
+
+    env = context.env
+    test_func_name = env['F77_NAME_MANGLER']('dgemm')
+
+def CheckNetlibLAPACK(context):
+    # XXX: support site.cfg
+    # Get fortran mangling
+    if not CheckF77Mangling(context):
+        return 0
+
+    env = context.env
+    test_func_name = env['F77_NAME_MANGLER']('dpotri')



More information about the Numpy-svn mailing list