From c744ce4b6d10348f2dfb05b3d90b9fae1b074681 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 16 Feb 2017 19:01:25 +0100 Subject: [PATCH] Fix bad change to cythonize.py script, re subprocess call --- bin/cythonize.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cythonize.py b/bin/cythonize.py index 04e51ba2ca6..47f3b23fc18 100755 --- a/bin/cythonize.py +++ b/bin/cythonize.py @@ -56,7 +56,7 @@ def process_pyx(fromfile, tofile): try: try: r = subprocess.call(['cython'] + flags + ['-o', tofile, fromfile], - shell=True, env=os.environ) # See Issue #791 + env=os.environ) # See Issue #791 if r != 0: raise Exception('Cython failed') except OSError: diff --git a/setup.py b/setup.py index 035f98f1c3b..6cc6c3d52c2 100644 --- a/setup.py +++ b/setup.py @@ -144,7 +144,7 @@ def generate_cython(root, source): print('Cythonizing sources') p = subprocess.call([sys.executable, os.path.join(root, 'bin', 'cythonize.py'), - source], shell=True, env=os.environ) + source], env=os.environ) if p != 0: raise RuntimeError('Running cythonize failed')