diff options
Diffstat (limited to 'numpy/random')
| -rw-r--r-- | numpy/random/SConscript | 50 | ||||
| -rw-r--r-- | numpy/random/SConstruct | 2 | ||||
| -rw-r--r-- | numpy/random/setupscons.py | 40 |
3 files changed, 0 insertions, 92 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) diff --git a/numpy/random/SConstruct b/numpy/random/SConstruct deleted file mode 100644 index a377d8391..000000000 --- a/numpy/random/SConstruct +++ /dev/null @@ -1,2 +0,0 @@ -from numscons import GetInitEnvironment -GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript') diff --git a/numpy/random/setupscons.py b/numpy/random/setupscons.py deleted file mode 100644 index f5342c39e..000000000 --- a/numpy/random/setupscons.py +++ /dev/null @@ -1,40 +0,0 @@ -import glob -from os.path import join, split - -def configuration(parent_package='',top_path=None): - from numpy.distutils.misc_util import Configuration, get_mathlibs - config = Configuration('random',parent_package,top_path) - - source_files = [join('mtrand', i) for i in ['mtrand.c', - 'mtrand.pyx', - 'numpy.pxi', - 'randomkit.c', - 'randomkit.h', - 'Python.pxi', - 'initarray.c', - 'initarray.h', - 'distributions.c', - 'distributions.h', - ]] - config.add_sconscript('SConstruct', source_files = source_files) - config.add_data_files(('.', join('mtrand', 'randomkit.h'))) - config.add_data_dir('tests') - - return config - -def testcode_wincrypt(): - return """\ -/* check to see if _WIN32 is defined */ -int main(int argc, char *argv[]) -{ -#ifdef _WIN32 - return 0; -#else - return 1; -#endif -} -""" - -if __name__ == '__main__': - from numpy.distutils.core import setup - setup(configuration=configuration) |
