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: 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: 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: 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: 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: 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: 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