diff options
author | David Cournapeau <cournape@gmail.com> | 2008-01-07 02:43:05 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-01-07 02:43:05 +0000 |
commit | 38bd49de8052aa6347bc6b8f1d09e98e38e122a0 (patch) | |
tree | 849163132bca5a7350323ff621dddf2971050479 /numpy/random/setupscons.py | |
parent | 022f76e7e3d66af6dbbd058f70095956407486b5 (diff) | |
download | numpy-38bd49de8052aa6347bc6b8f1d09e98e38e122a0.tar.gz |
numpy.random now builds with scons
Diffstat (limited to 'numpy/random/setupscons.py')
-rw-r--r-- | numpy/random/setupscons.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/numpy/random/setupscons.py b/numpy/random/setupscons.py new file mode 100644 index 000000000..969300ff6 --- /dev/null +++ b/numpy/random/setupscons.py @@ -0,0 +1,40 @@ +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) |