summaryrefslogtreecommitdiff
path: root/numpy/random/setup.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-04 17:26:31 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-04 17:26:31 +0000
commit8e2654541c6eae0f308908f501cccbc86b2f9101 (patch)
treebfcfe3b282c8fb659832bf86a841ce76852094ad /numpy/random/setup.py
parentddaed649c23bbd0ad36cdafdfe9cd92397ce69e3 (diff)
downloadnumpy-8e2654541c6eae0f308908f501cccbc86b2f9101.tar.gz
Moved scipy directory to numpy
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r--numpy/random/setup.py24
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())