python: Generate python interpreter list
commit1d60fb72168e62d33fe433380af621de64e22f23
authorMathieu Lirzin <mthl@gnu.org>
Thu, 1 Feb 2018 12:51:03 +0000 (1 13:51 +0100)
committerMathieu Lirzin <mthl@gnu.org>
Sun, 4 Feb 2018 00:33:32 +0000 (4 01:33 +0100)
tree8a7963d139403c54a0af02e4bb1914327645aefb
parent3edf8e05670dfa761d45c835ecbd8669799bd1a5
python: Generate python interpreter list

_AM_PYTHON_INTERPRETER_LIST is used by AM_PYTHON_PATH to autodetect
Python programs whose names correspond to a specific Python
version (e.g. python3.6).  Previously this list was updated manually.
The automatic support of newer versions (up to 4.0 excluded) fixes
bug#28160.

* m4/python.m4 (am_py_min_ver, am_py_max_ver): New macros.
(_AM_PYTHON_INTERPRETER_LIST): Generate this list instead of hard-coding
it.  Implementation is taken from GNU Pyconfigure.
m4/python.m4