Pass environment to Cythonize script. Closes #791

This commit is contained in:
Matthew Honnibal 2017-02-17 01:04:16 +11:00 committed by GitHub
parent 7d8c9eee7f
commit 071d11cb35

View File

@ -55,7 +55,8 @@ def process_pyx(fromfile, tofile):
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
if r != 0:
raise Exception('Cython failed')
except OSError: