Build: Use the same Python for Mako as for DOM codegen.

This defaults to Python 2.x and makes the previous commit useless,
but upgrading Mako doesn’t hurt anyway.
This commit is contained in:
Simon Sapin 2014-03-31 16:26:32 +01:00
parent f48492e5a5
commit 329f3735e6

View file

@ -310,7 +310,7 @@ globalgen_dependencies := $(addprefix $(BINDINGS_SRC)/, GlobalGen.py Bindings.co
$(MAKO_style): $(MAKO_SRC_style)
# Use a temporary file to avoid writing an empty (but more recent) file on failure.
PYTHONPATH=$(MAKO_ZIP) python -c "from mako.template import Template; print(Template(filename='$<').render())" > $@.tmp
PYTHONPATH=$(MAKO_ZIP) $(CFG_PYTHON2) -c "from mako.template import Template; print(Template(filename='$<').render())" > $@.tmp
mv $@.tmp $@