[RFC] Requiring python 2.6

Rafael,

I installed python-3.3 for my builders.

I wish if configurator(s) would detect suffixed python. I am using
/usr/bin/python3 (or python3.3).

By the way, who could watch on the bottom line, python-2.7?

Currently they look for python, python2, python27.

Should we change it to python3, python, python2, python27?

BTW, I just noticed cmake check is out of date:

set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5)
include(FindPythonInterp)
if( NOT PYTHONINTERP_FOUND )
  message(FATAL_ERROR
"Unable to find Python interpreter, required for builds and testing.

Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
endif()

Cheers,
Rafael

I wish if configurator(s) would detect suffixed python. I am using
/usr/bin/python3 (or python3.3).

Could you not just setup a symlink on your builder? On my system
/usr/bin/python is a symlink to python3 but I could easily change it
to point to python2.7

$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Oct 8 14:58 /usr/bin/python -> python3
lrwxrwxrwx 1 root root 9 Sep 24 11:40 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 6240 Sep 24 11:40 /usr/bin/python2.7
-rwxr-xr-x 1 root root 1668 Sep 24 11:40 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root 16 Sep 24 11:40 /usr/bin/python2-config ->
python2.7-config
-rwxr-xr-x 1 root root 94 Nov 15 04:27 /usr/bin/python2-pyuic4
lrwxrwxrwx 1 root root 9 Oct 8 14:58 /usr/bin/python3 -> python3.4
-rwxr-xr-x 2 root root 10392 Oct 8 14:58 /usr/bin/python3.4
lrwxrwxrwx 1 root root 17 Oct 8 14:58 /usr/bin/python3.4-config ->
python3.4m-config
-rwxr-xr-x 2 root root 10392 Oct 8 14:58 /usr/bin/python3.4m
-rwxr-xr-x 1 root root 3139 Oct 8 14:58 /usr/bin/python3.4m-config
lrwxrwxrwx 1 root root 16 Oct 8 14:58 /usr/bin/python3-config ->
python3.4-config
lrwxrwxrwx 1 root root 14 Oct 8 14:58 /usr/bin/python-config ->
python3-config

Minor point, but it looks like the Python community wants “python” to always link to “python2” (though they acknowledge the existence of systems where this isn’t the case):
https://www.python.org/dev/peps/pep-0394/