summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index e88723820..d7fa3f544 100755
--- a/setup.py
+++ b/setup.py
@@ -225,12 +225,13 @@ class sdist_checked(sdist):
def generate_cython():
cwd = os.path.abspath(os.path.dirname(__file__))
print("Cythonizing sources")
- p = subprocess.call([sys.executable,
- os.path.join(cwd, 'tools', 'cythonize.py'),
- 'numpy/random'],
- cwd=cwd)
- if p != 0:
- raise RuntimeError("Running cythonize failed!")
+ for d in ('mtrand', 'randomgen', 'randomgen/legacy'):
+ p = subprocess.call([sys.executable,
+ os.path.join(cwd, 'tools', 'cythonize.py'),
+ 'numpy/random/{0}'.format(d)],
+ cwd=cwd)
+ if p != 0:
+ raise RuntimeError("Running cythonize failed!")
def parse_setuppy_commands():