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

numpy-svn@scip... numpy-svn@scip...
Wed Nov 19 06:30:30 CST 2008


Author: cdavid
Date: 2008-11-19 06:30:26 -0600 (Wed, 19 Nov 2008)
New Revision: 6081

Modified:
   trunk/numpy/random/SConscript
Log:
Handle ftime mingw problem with numscons.

Modified: trunk/numpy/random/SConscript
===================================================================
--- trunk/numpy/random/SConscript	2008-11-17 14:19:54 UTC (rev 6080)
+++ trunk/numpy/random/SConscript	2008-11-19 12:30:26 UTC (rev 6081)
@@ -1,9 +1,11 @@
-# Last Change: Thu Jun 12 06:00 PM 2008 J
+# Last Change: Wed Nov 19 09:00 PM 2008 J
 # vim:syntax=python
 import os
 
 from numscons import GetNumpyEnvironment, scons_get_mathlib
 
+from setup import needs_mingw_ftime_workaround
+
 def CheckWincrypt(context):
     from copy import deepcopy
     src = """\
@@ -37,6 +39,9 @@
     if config.CheckWincrypt:
         config.env.AppendUnique(LIBS = 'Advapi32')
 
+if needs_mingw_ftime_workaround():
+    env.Append(CPPDEFINES=['NPY_NEEDS_MINGW_TIME_WORKAROUND'])
+
 sources = [os.path.join('mtrand', x) for x in 
            ['mtrand.c', 'randomkit.c', 'initarray.c', 'distributions.c']]
 



More information about the Numpy-svn mailing list