diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-01-13 10:04:44 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-01-13 11:16:47 -0700 |
commit | df259db01ecf69d518fffd398dd6fb5cf60f1ba1 (patch) | |
tree | a7a7a7f6b9a5a80759576faa9e61cca97c58cefe /numpy/random/SConscript | |
parent | 23e9f01f54474503f0296e3ff1cb173c6228cb98 (diff) | |
download | numpy-df259db01ecf69d518fffd398dd6fb5cf60f1ba1.tar.gz |
DEP: Remove scons related files and code.
This removes files and code supporting scons builds. After this change
numpy will only support builds using distutils or bento. The removal of
scons has been discussed on the list several times and a decision has been
made that scons support is no longer needed. This was originally discussed
for numpy 1.7 and because the distutils and bento methods are still
available we are skipping the usual deprecation period.
Diffstat (limited to 'numpy/random/SConscript')
-rw-r--r-- | numpy/random/SConscript | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/numpy/random/SConscript b/numpy/random/SConscript deleted file mode 100644 index a2acb0a66..000000000 --- a/numpy/random/SConscript +++ /dev/null @@ -1,50 +0,0 @@ -# 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 = """\ -/* 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) - -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') - config.Finish() - -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']] - -# XXX: Pyrex dependency -env.NumpyPythonExtension('mtrand', source = sources) |