diff --git a/builds/freetype.mk b/builds/freetype.mk index 46a307dd3..83b371c33 100644 --- a/builds/freetype.mk +++ b/builds/freetype.mk @@ -299,13 +299,13 @@ PIP ?= pip refdoc: @echo Running docwriter... - $(PYTHON) -m docwriter \ - --prefix=ft2 \ - --title=FreeType-$(version) \ - --output=$(DOC_DIR) \ - $(PUBLIC_DIR)/*.h \ - $(PUBLIC_DIR)/config/*.h \ - $(PUBLIC_DIR)/cache/*.h + $(PYTHON) -m docwriter \ + --prefix=ft2 \ + --title=FreeType-$(version) \ + --output=$(DOC_DIR) \ + $(PUBLIC_DIR)/*.h \ + $(PUBLIC_DIR)/config/*.h \ + $(PUBLIC_DIR)/cache/*.h @echo Building static site... cd $(DOC_DIR) && mkdocs build @echo Done. @@ -326,13 +326,13 @@ refdoc-venv: @echo Installing docwriter... $(ENV_PIP) install docwriter @echo Running docwriter... - $(ENV_PYTHON) -m docwriter \ - --prefix=ft2 \ - --title=FreeType-$(version) \ - --output=$(DOC_DIR) \ - $(PUBLIC_DIR)/*.h \ - $(PUBLIC_DIR)/config/*.h \ - $(PUBLIC_DIR)/cache/*.h + $(ENV_PYTHON) -m docwriter \ + --prefix=ft2 \ + --title=FreeType-$(version) \ + --output=$(DOC_DIR) \ + $(PUBLIC_DIR)/*.h \ + $(PUBLIC_DIR)/config/*.h \ + $(PUBLIC_DIR)/cache/*.h @echo Building static site... cd $(DOC_DIR) && $(VENV_NAME)$(SEP)$(BIN)$(SEP)python -m mkdocs build @echo Done. diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw index aa67f869a..d59437ec5 100644 --- a/builds/unix/configure.raw +++ b/builds/unix/configure.raw @@ -970,10 +970,10 @@ esac # Check for python and docwriter -AC_CHECK_PROGS([PYTHON], [python python2 python3], [missing]) +AC_CHECK_PROGS([PYTHON], [python3 python2 python], [missing]) have_docwriter=no if test "x$PYTHON" != "xmissing"; then - AC_CHECK_PROGS([PIP], [pip pip2 pip3], [missing]) + AC_CHECK_PROGS([PIP], [pip3 pip2 pip], [missing]) if test "x$PIP" != "xmissing"; then AC_MSG_CHECKING([for \`docwriter' Python module])