diff options
author | David Cournapeau <cournape@gmail.com> | 2008-11-19 12:30:26 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-11-19 12:30:26 +0000 |
commit | 0a96db9fb6ec83daafa77e700e7c7ef572a5ab48 (patch) | |
tree | fc75ed10cbdc860398bbce9056b522aa6cbeddfc | |
parent | 0c6632340058b23866dbc95e58867608f884897f (diff) | |
download | numpy-0a96db9fb6ec83daafa77e700e7c7ef572a5ab48.tar.gz |
Handle ftime mingw problem with numscons.
-rw-r--r-- | numpy/random/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/random/SConscript b/numpy/random/SConscript index a9bc3a599..3f17b7367 100644 --- a/numpy/random/SConscript +++ b/numpy/random/SConscript @@ -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 os.name == 'nt': 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']] |