Am Montag, 23. Februar 2015 um 14:54:47, schrieb José Matos <[email protected]> > Hi, > the first step to start the procedure is to update the requirements for > python to 2.7 as discussed last year. > > My problem is that as described last year I suggest to support python > == 2.7.x (for any x) and python >= 3.3.0. > > I am at loss how to add this test to configure.ac and similarly to > cmake. > > Any help from our resident experts Jean-Marc and Kornel.
Cmake:
We could try to use the built-in FindPythonInterp.cmake. Looking at the git-log
of cmake, it is
included in cmake since July 15 2005.
find_package(PythonInterp 2.7 EXACT QUIET)
if (NOT PYTHONINTERP_FOUND)
find_package(PythonInterp 3.3 REQUIRED)
endif()
# This should find python 2.7, 3.3, 3.4, ...
set(LYX_PYTHON_EXECUTABLE PYTHON_EXECUTABLE CACHE FILEPATH "Python to be used
by LyX")
# Now we can use the variables PYTHON_VERSION_MAJOR and PYTHON_VERSION_MINOR to
determine
# how to proceed.
I would take care of it, when it becomes a requirement.
Kornel
signature.asc
Description: This is a digitally signed message part.
