summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>2018-08-02 01:42:04 +0530
committerNikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>2018-08-02 01:42:04 +0530
commit13ad839007057eab40522f4a3d8dc244199c7acc (patch)
treebbe43bed569c681e93ead8587bdca60515613ae8
parentdfac4db6022365f4665331e0a31972f0743fd543 (diff)
downloadfreetype2-13ad839007057eab40522f4a3d8dc244199c7acc.tar.gz
* builds/unix/configure.raw: Change order of checking for Python.
Check for Python and pip in the order p3, p2, p so that we use the same version of Python *and* pip at any given point of time. * builds/freetype.mk: Minor formatting.
-rw-r--r--builds/freetype.mk28
-rw-r--r--builds/unix/configure.raw4
2 files changed, 16 insertions, 16 deletions
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])