mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
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.
This commit is contained in:
parent
65ec404eb3
commit
d933d72fa9
@ -18,9 +18,7 @@ AC_DEFUN([LYX_PATH_PYTHON23],
|
|||||||
m4_define(py2_ver, [patsubst($1,[\.],[,])])
|
m4_define(py2_ver, [patsubst($1,[\.],[,])])
|
||||||
m4_define(py3_ver, [patsubst($2,[\.],[,])])
|
m4_define(py3_ver, [patsubst($2,[\.],[,])])
|
||||||
|
|
||||||
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
|
m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python3 python2])
|
||||||
[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])
|
|
||||||
|
|
||||||
if test -n "$PYTHON"; then
|
if test -n "$PYTHON"; then
|
||||||
# If the user set $PYTHON, use it and don't search something else.
|
# If the user set $PYTHON, use it and don't search something else.
|
||||||
|
Loading…
Reference in New Issue
Block a user