[Numpy-svn] r5280 - trunk/numpy/random

numpy-svn@scip... numpy-svn@scip...
Thu Jun 12 05:05:18 CDT 2008


Author: cdavid
Date: 2008-06-12 05:05:12 -0500 (Thu, 12 Jun 2008)
New Revision: 5280

Added:
   trunk/numpy/random/SConscript
   trunk/numpy/random/SConstruct
Removed:
   trunk/numpy/random/SConstruct
Log:
adapt numpy.random to new scons build_dir architecture.

Copied: trunk/numpy/random/SConscript (from rev 5266, trunk/numpy/random/SConstruct)
===================================================================
--- trunk/numpy/random/SConstruct	2008-06-12 05:45:18 UTC (rev 5266)
+++ trunk/numpy/random/SConscript	2008-06-12 10:05:12 UTC (rev 5280)
@@ -0,0 +1,46 @@
+# Last Change: Thu Jun 12 06:00 PM 2008 J
+# vim:syntax=python
+import os
+
+from numscons import GetNumpyEnvironment, scons_get_paths, \
+                                  scons_get_mathlib
+
+def CheckWincrypt(context):
+    from copy import deepcopy
+    src = """\
+/* check to see if _WIN32 is defined */
+int main(int argc, char *argv[])
+{
+#ifdef _WIN32
+    return 0;
+#else
+    return 1;
+#endif
+}
+"""
+
+    context.Message("Checking if using wincrypt ... ")
+    st = context.env.TryRun(src, '.C')
+    if st[0] == 0:
+        context.Result('No')
+    else:
+        context.Result('Yes')
+    return st[0]
+    
+env = GetNumpyEnvironment(ARGUMENTS)
+env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
+
+mlib = scons_get_mathlib(env)
+env.AppendUnique(LIBS = mlib)
+
+# On windows, see if we should use Advapi32
+if os.name == 'nt':
+    config = env.NumpyConfigure(custom_tests = {'CheckWincrypt' : CheckWincrypt})
+    if config.CheckWincrypt:
+        config.env.AppendUnique(LIBS = 'Advapi32')
+
+sources = [os.path.join('mtrand', x) for x in 
+           ['mtrand.c', 'randomkit.c', 'initarray.c', 'distributions.c']]
+
+# XXX: Pyrex dependency
+mtrand = env.DistutilsPythonExtension('mtrand', source = sources)

Deleted: trunk/numpy/random/SConstruct
===================================================================
--- trunk/numpy/random/SConstruct	2008-06-12 10:00:37 UTC (rev 5279)
+++ trunk/numpy/random/SConstruct	2008-06-12 10:05:12 UTC (rev 5280)
@@ -1,46 +0,0 @@
-# Last Change: Tue May 20 05:00 PM 2008 J
-# vim:syntax=python
-import os
-
-from numscons import GetNumpyEnvironment, scons_get_paths, \
-                                  scons_get_mathlib
-
-def CheckWincrypt(context):
-    from copy import deepcopy
-    src = """\
-/* check to see if _WIN32 is defined */
-int main(int argc, char *argv[])
-{
-#ifdef _WIN32
-    return 0;
-#else
-    return 1;
-#endif
-}
-"""
-
-    context.Message("Checking if using wincrypt ... ")
-    st = context.env.TryRun(src, '.C')
-    if st[0] == 0:
-        context.Result('No')
-    else:
-        context.Result('Yes')
-    return st[0]
-    
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
-
-mlib = scons_get_mathlib(env)
-env.AppendUnique(LIBS = mlib)
-
-# On windows, see if we should use Advapi32
-if os.name == 'nt':
-    config = env.NumpyConfigure(custom_tests = {'CheckWincrypt' : CheckWincrypt})
-    if config.CheckWincrypt:
-        config.env.AppendUnique(LIBS = 'Advapi32')
-
-sources = [os.path.join('mtrand', x) for x in 
-           ['mtrand.c', 'randomkit.c', 'initarray.c', 'distributions.c']]
-
-# XXX: Pyrex dependency
-mtrand = env.NumpyPythonExtension('mtrand', source = sources)

Copied: trunk/numpy/random/SConstruct (from rev 5277, trunk/numpy/numarray/SConstruct)



More information about the Numpy-svn mailing list