Skip to content

Commit 6361aa2

Browse files
committed
Pass environment to cythonize subprocess
1 parent b75924a commit 6361aa2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/cythonize.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def process_pyx(fromfile, tofile):
6767

6868
try:
6969
try:
70-
r = subprocess.call(['cython'] + flags + ["-o", tofile, fromfile])
70+
r = subprocess.call(['cython'] + flags + ["-o", tofile, fromfile], env=os.environ)
7171
if r != 0:
7272
raise Exception('Cython failed')
7373
except OSError:
@@ -76,7 +76,7 @@ def process_pyx(fromfile, tofile):
7676
r = subprocess.call([sys.executable, '-c',
7777
'import sys; from Cython.Compiler.Main import '
7878
'setuptools_main as main; sys.exit(main())'] + flags +
79-
["-o", tofile, fromfile])
79+
["-o", tofile, fromfile], env=os.environ)
8080
if r != 0:
8181
raise Exception('Cython failed')
8282
except OSError:
@@ -196,4 +196,4 @@ def main():
196196

197197

198198
if __name__ == '__main__':
199-
main()
199+
main()

0 commit comments

Comments
 (0)