Pass shell to cythonize.py. See Issue #791

This commit is contained in:
Matthew Honnibal 2017-02-17 01:06:06 +11:00 committed by GitHub
parent 071d11cb35
commit 0836cbe064
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ def generate_cython(root, source):
print('Cythonizing sources') print('Cythonizing sources')
p = subprocess.call([sys.executable, p = subprocess.call([sys.executable,
os.path.join(root, 'bin', 'cythonize.py'), os.path.join(root, 'bin', 'cythonize.py'),
source]) source], shell=True, env=os.environ)
if p != 0: if p != 0:
raise RuntimeError('Running cythonize failed') raise RuntimeError('Running cythonize failed')