diff --git a/bin/cythonize.py b/bin/cythonize.py index 04e51ba2c..47f3b23fc 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 035f98f1c..6cc6c3d52 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')