Commit 0805c4a488bf35603d19b6951ce255efeb48b457

Ben Wagner 2018-09-09T09:25:58

* builds/freetype.mk (refdoc-venv): Ensure python version (#54631).

diff --git a/ChangeLog b/ChangeLog
index 33123d2..97a11b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-09-09  Ben Wagner  <bungeman@google.com>
+
+	* builds/freetype.mk (refdoc-venv): Ensure python version (#54631).
+
 2018-09-07  Werner Lemberg  <wl@gnu.org>
 
 	[truetype] Fix assertion failure.
diff --git a/builds/freetype.mk b/builds/freetype.mk
index 356aa70..1114830 100644
--- a/builds/freetype.mk
+++ b/builds/freetype.mk
@@ -321,7 +321,7 @@ ENV_PIP    := $(VENV_DIR)$(SEP)$(BIN)$(SEP)$(PIP)
 
 refdoc-venv:
 	@echo Setting up virtualenv for Python...
-	virtualenv $(VENV_DIR)
+	virtualenv --python=$(PYTHON) $(VENV_DIR)
 	@echo Installing docwriter...
 	$(ENV_PIP) install docwriter
 	@echo Running docwriter...