force environ when opening a subprocess (cythonize)

This commit is contained in:
Mathieu Virbel 2013-10-22 13:29:45 +02:00
parent d82802f277
commit 71a81a6924

View file

@ -27,7 +27,7 @@ def do(fn):
package = '_'.join(parts[:-1]) package = '_'.join(parts[:-1])
# cythonize # cythonize
subprocess.Popen([cython, fn]).communicate() subprocess.Popen([cython, fn], env=os.environ).communicate()
if not package: if not package:
print 'no need to rewrite', fn print 'no need to rewrite', fn