]> git.lyx.org Git - lyx.git/commitdiff
Search for python3 first, then python2 in autoconf
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 16 May 2019 16:32:14 +0000 (18:32 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 16 May 2019 16:36:41 +0000 (18:36 +0200)
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.

config/lyxpython.m4

index aaa3beb99042dc32f0bd75d1cd5098ea65261f15..adc816dde7b39c0ce094bf2cabd42cb97c7f6a5b 100644 (file)
@@ -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.