From 071d11cb35f276da4463978dfe6056765d106dbe Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 17 Feb 2017 01:04:16 +1100 Subject: [PATCH] Pass environment to Cythonize script. Closes #791 --- bin/cythonize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cythonize.py b/bin/cythonize.py index 81e0248d6..04e51ba2c 100755 --- a/bin/cythonize.py +++ b/bin/cythonize.py @@ -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: