Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-05 Thread Enrico Forestieri
On Wed, Jan 05, 2022 at 12:27:25PM +, José Abílio Matos wrote: > > On Tuesday, 4 January 2022 08.53.46 WET Enrico Forestieri wrote: > > I disagree. It should return the first usable version found first in > > PATH. The user has to be in control of what version has to be run, not > > the softwa

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-05 Thread José Abílio Matos
On Tuesday, 4 January 2022 08.53.46 WET Enrico Forestieri wrote: > I disagree. It should return the first usable version found first in > PATH. The user has to be in control of what version has to be run, not > the software. I understand what you say, and I agree, but that is precisely what we are

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-04 Thread Enrico Forestieri
On Tue, Jan 04, 2022 at 08:27:10AM +, José Abílio Matos wrote: > > The code can be made more complete. > E.g. previously we searched for python3* and python2* eventually I think that > we can go back to something related. Instead of returning the first python > that satisfies the requirement

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-04 Thread José Abílio Matos
On Tuesday, 4 January 2022 07.16.52 WET Stephan Witt wrote: > Interestingly on my system the python3 is detected only if I install the > Python package from python.org. The python3 in /usr/bin is not tried? > Sorry, I didn’t read the code yet. It should according to the code in support/os.cpp. Th

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-03 Thread Stephan Witt
Am 04.01.2022 um 01:37 schrieb José Abílio Matos : > > On Friday, 31 December 2021 13.03.57 WET Stephan Witt wrote: > > I’m curious how difficult it would be to ignore python2 and present a > > message box for users to tell them how to get a python3 interpreter. > > > > BR, Stephan > > For now we

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-03 Thread José Abílio Matos
On Friday, 31 December 2021 13.03.57 WET Stephan Witt wrote: > I’m curious how difficult it would be to ignore python2 and present a > message box for users to tell them how to get a python3 interpreter. > > BR, Stephan For now we always search for Python 3 before Python 2. We know what is the v

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-03 Thread José Abílio Matos
On Wednesday, 29 December 2021 10.38.38 WET Stephan Witt wrote: > In any case we should ensure the detected usable python is used > consequently. > > Stephan This should be done now. All the heuristics regarding Python detection is now placed in src/support/ os.cpp. In particular we can try use

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2021-12-31 Thread Stephan Witt
Am 29.12.2021 um 11:38 schrieb Stephan Witt : > > Am 28.12.2021 um 13:55 schrieb José Abílio Matos : >> >> On Tuesday, 28 December 2021 12.33.57 WET Stephan Witt wrote: >>> The LyX tasks here are IMO: >>> 1. Assure the detected python3 is used consequently. This is not the case >>> ATM. >>> 2. Do

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2021-12-29 Thread Stephan Witt
Am 28.12.2021 um 13:55 schrieb José Abílio Matos : > > On Tuesday, 28 December 2021 12.33.57 WET Stephan Witt wrote: > > The LyX tasks here are IMO: > > 1. Assure the detected python3 is used consequently. This is not the case > > ATM. > > 2. Document the meaning of the prompts the LyX user is see

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2021-12-28 Thread José Abílio Matos
On Tuesday, 28 December 2021 12.33.57 WET Stephan Witt wrote: > The LyX tasks here are IMO: > 1. Assure the detected python3 is used consequently. This is not the case > ATM. > 2. Document the meaning of the prompts the LyX user is seeing on > Monterey. > 3. Provide a working python3 or give approp