On Tuesday, 14 May 2019 19.17.56 WEST Jean-Marc Lasgouttes wrote:
> On my self-build master LyX on windows 10, I get the error below when
> reconfiguring. Python is 3.6.
> 
> What is that?
> 
> JMarc

Based on this I would like to suggest before 2.4 to modify the current python 
detection logic.

Instead of using the first version we find, I would suggest to try first to 
detect python 3 and only then if it is not detected to search for python 2.

The search logic can also be changed from searching for, e.g. on linux, 
instead of searching for (/usr/bin/)python we should search for either (/usr/
bin/)python3 or (/usr/bin/)python2 (they do exist if one of the versions is 
installed).

1) The first step is to change both cmake and autotols detection.

2) There is a second stage where we need to change configure.py (replacing the 
calls to python to python2 or python2 depending on the version of python 
called to run it).

I can easily do 2) and I would like help to do 1).

The advantage of this approach is that it works for places that only have 
python 2 installed.

After lyx 2.4 is released I suggest to remove python 2 support from the code 
base.

What do you think?

Best regards,
-- 
José Abílio


Reply via email to