diff options
author | Jarrod Millman <millman@berkeley.edu> | 2008-02-08 10:12:16 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2008-02-08 10:12:16 +0000 |
commit | 0b7800b455b3aaf50cb83a224f283e72f1dea951 (patch) | |
tree | aab6281c88fd6bed7c74df03562c197d934edd83 /numpy/random/setupscons.py | |
parent | 964727a2c475a7e48e262efc52b51345f51f2522 (diff) | |
parent | fb3f711f1a1eafb2895a84a80f88814d7fb9a465 (diff) | |
download | numpy-0b7800b455b3aaf50cb83a224f283e72f1dea951.tar.gz |
merging David Cournapeau's build_with_scons branch, which adds scons support to numpy.distutils and modifies the configuration of numpy/core
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) |