diff options
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r-- | numpy/random/setup.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/numpy/random/setup.py b/numpy/random/setup.py new file mode 100644 index 000000000..17e5e0133 --- /dev/null +++ b/numpy/random/setup.py @@ -0,0 +1,24 @@ + +from os.path import join + +def configuration(parent_package='',top_path=None): + from scipy.distutils.misc_util import Configuration + config = Configuration('random',parent_package,top_path) + + # Configure mtrand + config.add_extension('mtrand', + sources=[join('mtrand', x) for x in + ['mtrand.c', 'randomkit.c', 'initarray.c', + 'distributions.c']], + libraries=['m'], + depends = [join('mtrand','*.h'), + join('mtrand','*.pyx'), + join('mtrand','*.pxi'), + ] + ) + + return config + +if __name__ == '__main__': + from scipy.distutils.core import setup + setup(**configuration(top_path='').todict()) |