mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Pass environment to Cythonize script. Closes #791
This commit is contained in:
parent
7d8c9eee7f
commit
071d11cb35
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user