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

View File

@ -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])
source], shell=True, env=os.environ)
if p != 0:
raise RuntimeError('Running cythonize failed')