]> git.lyx.org Git - lyx.git/commitdiff
For python 3 require at least 3.5
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 27 Jun 2019 22:06:28 +0000 (00:06 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 27 Jun 2019 22:06:28 +0000 (00:06 +0200)
This handles configure.ac and os::python23. What remains to be done is cmake.

configure.ac
src/support/os.cpp

index 7bf598db44eb85c51b6f39aa636cc6c18e63a9bb..fb7efb165623e5fa13b566300ac0e80f062ee33c 100644 (file)
@@ -40,7 +40,7 @@ for file in config/install-sh ; do
 done
 
 # Find a suitable python interpreter
-LYX_PATH_PYTHON23([2.7.0], [3.3.0])
+LYX_PATH_PYTHON23([2.7.0], [3.5.0])
 # do the usual python setup stuff
 AM_PATH_PYTHON
 
index 9840ad3f4574b8673f18bdb60541d5078b4393a6..c381203313d949bbb16ccf1dd2063f02c5aab869 100644 (file)
@@ -65,7 +65,7 @@ static string const python23_call(string const & binary, bool verbose = false)
 
        int major = convert<int>(sm.str(1));
        int minor = convert<int>(sm.str(2));
-       if((major == 2 && minor < 7) || (major == 3 && minor < 4))
+       if((major == 2 && minor < 7) || (major == 3 && minor < 5))
                return string();
 
        if (verbose)