From: Jean-Marc Lasgouttes Date: Thu, 16 May 2019 16:32:14 +0000 (+0200) Subject: Search for python3 first, then python2 in autoconf X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ee9cd4e1c74f9eb21ce63aec259c4fef6eb83344;p=features.git Search for python3 first, then python2 in autoconf Python 3.x shall have priority over python 2.x. In 2.5.0dev, support for python2 will be removed. Now, we ignore all pythonx.y names, which are not relevant, and do not try either the basic "python" name. --- diff --git a/config/lyxpython.m4 b/config/lyxpython.m4 index aaa3beb990..adc816dde7 100644 --- a/config/lyxpython.m4 +++ b/config/lyxpython.m4 @@ -18,9 +18,7 @@ AC_DEFUN([LYX_PATH_PYTHON23], m4_define(py2_ver, [patsubst($1,[\.],[,])]) m4_define(py3_ver, [patsubst($2,[\.],[,])]) - m4_define_default([_AM_PYTHON_INTERPRETER_LIST], -[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl - python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0]) + m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python3 python2]) if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else.