Fix bad change to cythonize.py script, re subprocess call

This commit is contained in:
Matthew Honnibal 2017-02-16 19:01:25 +01:00
parent ea05f78660
commit c744ce4b6d
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ def process_pyx(fromfile, tofile):
try: try:
try: try:
r = subprocess.call(['cython'] + flags + ['-o', tofile, fromfile], 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: if r != 0:
raise Exception('Cython failed') raise Exception('Cython failed')
except OSError: except OSError:

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