summaryrefslogtreecommitdiff
path: root/numpy/random/mtrand/generate_mtrand_c.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2009-04-16 01:22:59 +0000
committerCharles Harris <charlesr.harris@gmail.com>2009-04-16 01:22:59 +0000
commit3d4610cd648fc518890e66b0b28856dd9f209c16 (patch)
tree658ad48709705be63eb9baa51006ee39ddc3f8fd /numpy/random/mtrand/generate_mtrand_c.py
parent9d79dfef3a5d0c814cd65e946ad5b413e1165def (diff)
downloadnumpy-3d4610cd648fc518890e66b0b28856dd9f209c16.tar.gz
Rebuild mtrand.c with cython and change the script to use cython.
This is needed because some VC++ compilers can't handle long strings.
Diffstat (limited to 'numpy/random/mtrand/generate_mtrand_c.py')
-rw-r--r--numpy/random/mtrand/generate_mtrand_c.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/random/mtrand/generate_mtrand_c.py b/numpy/random/mtrand/generate_mtrand_c.py
index 8eb6254f2..a781bce97 100644
--- a/numpy/random/mtrand/generate_mtrand_c.py
+++ b/numpy/random/mtrand/generate_mtrand_c.py
@@ -13,7 +13,9 @@ unused_internal_funcs = ['__Pyx_PrintItem',
'__Pyx_CreateClass']
if __name__ == '__main__':
- os.system('pyrexc mtrand.pyx')
+ # Use cython here so that long docstrings are broken up.
+ # This is needed for some VC++ compilers.
+ os.system('cython mtrand.pyx')
mtrand_c = open('mtrand.c', 'r')
processed = open('mtrand_pp.c', 'w')
unused_funcs_str = '(' + '|'.join(unused_internal_funcs) + ')'