[Numpy-svn] r4297 - in branches/numpy.scons/numpy/scons_fake: . checkers

numpy-svn@scip... numpy-svn@scip...
Thu Oct 25 22:31:51 CDT 2007


Author: cdavid
Date: 2007-10-25 22:31:45 -0500 (Thu, 25 Oct 2007)
New Revision: 4297

Added:
   branches/numpy.scons/numpy/scons_fake/checkers/
   branches/numpy.scons/numpy/scons_fake/checkers/SConstruct
   branches/numpy.scons/numpy/scons_fake/checkers/setup.py
Log:
Forgot to add checkers example in svn.

Added: branches/numpy.scons/numpy/scons_fake/checkers/SConstruct
===================================================================
--- branches/numpy.scons/numpy/scons_fake/checkers/SConstruct	2007-10-26 03:07:57 UTC (rev 4296)
+++ branches/numpy.scons/numpy/scons_fake/checkers/SConstruct	2007-10-26 03:31:45 UTC (rev 4297)
@@ -0,0 +1,22 @@
+# vim:syntax=python
+from numpy.distutils.scons import GetNumpyEnvironment, CheckATLAS, \
+                                  CheckAccelerate, CheckMKL2, CheckCBLAS
+
+env = GetNumpyEnvironment(ARGUMENTS)
+
+config = env.NumpyConfigure(custom_tests = 
+    {'CheckATLAS' : CheckATLAS,
+    'CheckMKL' : CheckMKL2,
+    'CheckAccelerate' : CheckAccelerate,
+    'CheckCBLAS' : CheckCBLAS})
+
+config.CheckATLAS(autoadd = 0)
+config.CheckMKL(autoadd = 0)
+config.CheckAccelerate(autoadd = 0)
+
+config.Finish()
+
+if env.has_key('LIBS'):
+    print env.Dump('LIBS')
+else:
+    print "No LIBS in env"

Added: branches/numpy.scons/numpy/scons_fake/checkers/setup.py
===================================================================
--- branches/numpy.scons/numpy/scons_fake/checkers/setup.py	2007-10-26 03:07:57 UTC (rev 4296)
+++ branches/numpy.scons/numpy/scons_fake/checkers/setup.py	2007-10-26 03:31:45 UTC (rev 4297)
@@ -0,0 +1,13 @@
+import os
+import os.path
+
+def configuration(parent_package='',top_path=None):
+    from numpy.distutils.misc_util import Configuration
+    config = Configuration('checkers',parent_package,top_path)
+
+    config.add_sconscript('SConstruct')
+    return config
+
+if __name__ == '__main__':
+    from numpy.distutils.core import setup
+    setup(configuration=configuration)



More information about the Numpy-svn mailing list