Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-24 Thread José Matos
On Tuesday 24 March 2015 10:37:18 Jean-Marc Lasgouttes wrote: > Thanks. I adapted your code and came up with a patch that I pushed to > master. Thank you. :-) > Everything should work now. Please complain if you find a bug. > > Note that now configure just dies if no suitable python interpreter

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-24 Thread Jean-Marc Lasgouttes
Le 21/03/2015 23:40, José Matos a écrit : The code attached does this. For the moment I am ignoring the arguments $2 and $3. The plan is to have code that supports both versions either 2.7.x (eventually 2.6 if some kind soul tests thoroughly) and 3.3+. So the code returns 1 if the python vers

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-21 Thread José Matos
On Wednesday 11 March 2015 20:57:43 Kornel Benko wrote: > Thank you José. If I understood correctly, the opposite of 'open(..,"r")' > should be 'open(..,"w")'. > (See development/cmake/po/dos2unix.py:15) > With also this extra change the script worked too. > > Kornel Note that as you fou

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-21 Thread José Matos
On Wednesday 11 March 2015 15:08:32 Jean-Marc Lasgouttes wrote: > Dear José, > > I took a quick look and I need help. The complicated macro for python > eventually calls: > > # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], > [ACTION-IF-FALSE]) > # > -

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-21 Thread José Matos
On Saturday 14 March 2015 14:53:17 Ian Wilder wrote: > have you guys thought about using Python 2to3? > > https://docs.python.org/2/library/2to3.html > > even if you don't use the result, it may give a good direction for > problems that arise. Bah.. too 2010... ;-) http://marc.info/?l=lyx-devel

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-14 Thread Ian Wilder
have you guys thought about using Python 2to3? https://docs.python.org/2/library/2to3.html even if you don't use the result, it may give a good direction for problems that arise. On 2015-02-23 14:54:47 +, José Matos said: Hi, the first step to start the procedure is to update the requi

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-12 Thread Jean-Marc Lasgouttes
Le 10/03/2015 15:34, José Matos a écrit : On Tuesday 10 March 2015 15:15:31 Jean-Marc Lasgouttes wrote: For autoconf, I saw the message, it is on my virtual todo list. JMarc Thank you Jean-Marc. :-) Dear José, I took a quick look and I need help. The complicated macro for python eventuall

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-11 Thread Kornel Benko
Am Mittwoch, 11. März 2015 um 17:57:29, schrieb José Matos > On Wednesday 11 March 2015 16:28:30 Kornel Benko wrote: > > This is probably trivial, but I could not see the error in dos2unix.py. > > ... > > cd /usr/BUILD/BuildLyxGitQt5/po && /usr/bin/python3 > > /usr/src/lyx/lyx-git/development/cma

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-11 Thread José Matos
On Wednesday 11 March 2015 16:28:30 Kornel Benko wrote: > This is probably trivial, but I could not see the error in dos2unix.py. > ... > cd /usr/BUILD/BuildLyxGitQt5/po && /usr/bin/python3 > /usr/src/lyx/lyx-git/development/cmake/po/dos2unix.py > /usr/BUILD/BuildLyxGitQt5/po/lyx2.2.cat_tmp.pot >

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-11 Thread Kornel Benko
Am Mittwoch, 11. März 2015 um 13:51:24, schrieb José Matos > On Tuesday 10 March 2015 18:31:04 Kornel Benko wrote: > > I've done that. Using python 3.3 is premature anyway, because at least > > lyx_pot.py does not work. > > After the last commit this error does happen anymore but there are othe

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-11 Thread José Matos
On Tuesday 10 March 2015 18:31:04 Kornel Benko wrote: > I've done that. Using python 3.3 is premature anyway, because at least > lyx_pot.py does not work. After the last commit this error does happen anymore but there are others related with the fact that all strings in python3 are unicode whil

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-10 Thread Kornel Benko
Am Dienstag, 10. März 2015 um 17:13:27, schrieb José Matos > On Tuesday 10 March 2015 17:18:48 Kornel Benko wrote: > > I am ready. What should we prefer, 2.7 or 3.3+ ? > > > > Kornel > > I suggest 2.7 for lyx 2.2 and 3.3+ for later lyx releases. > > I suggest python 2 by default for lyx

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-10 Thread José Matos
On Tuesday 10 March 2015 17:18:48 Kornel Benko wrote: > I am ready. What should we prefer, 2.7 or 3.3+ ? > > Kornel I suggest 2.7 for lyx 2.2 and 3.3+ for later lyx releases. I suggest python 2 by default for lyx 2.2 because that is where most (all for now) tests and users are. Regards

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-10 Thread Kornel Benko
Am Dienstag, 10. März 2015 um 14:11:51, schrieb José Matos > On Monday 23 February 2015 16:31:27 Kornel Benko wrote: > > I would take care of it, when it becomes a requirement. > > > > Kornel > > I have committed the first patch towards this goal. > > Because of a mistake (the email was

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-10 Thread José Matos
On Tuesday 10 March 2015 15:15:31 Jean-Marc Lasgouttes wrote: > For autoconf, I saw the message, it is on my virtual todo list. > > JMarc Thank you Jean-Marc. :-) -- José Abílio

Re: Python 2 and 3 simultaneous support (1st step)

2015-03-10 Thread Jean-Marc Lasgouttes
Le 10/03/2015 15:11, José Matos a écrit : On Monday 23 February 2015 16:31:27 Kornel Benko wrote: I would take care of it, when it becomes a requirement. Kornel I have committed the first patch towards this goal. Because of a mistake (the email was unset) it will not show in the com

Re: Re: Python 2 and 3 simultaneous support (1st step)

2015-03-10 Thread José Matos
On Monday 23 February 2015 16:31:27 Kornel Benko wrote: > I would take care of it, when it becomes a requirement. > > Kornel I have committed the first patch towards this goal. Because of a mistake (the email was unset) it will not show in the commits mailing list. The patch committed

Re: Python 2 and 3 simultaneous support (1st step)

2015-02-23 Thread Kornel Benko
Am Montag, 23. Februar 2015 um 14:54:47, schrieb José Matos > 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 pyt

Python 2 and 3 simultaneous support (1st step)

2015-02-23 Thread José Matos
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 configur