Re: [patch] python support

2011-10-28 Thread Enrico Forestieri
On Fri, Oct 28, 2011 at 02:25:06PM +0200, Jean-Marc Lasgouttes wrote: > Le 28/10/2011 14:18, Julien Rioux a écrit : > >The magic replacement of "python -tt" is very hackish we should probably > >make it > >a proper "token", maybe $$p. For example I change "python -t" and it breaks. > >In > >certa

Re: [patch] python support

2011-10-28 Thread Enrico Forestieri
On Fri, Oct 28, 2011 at 12:18:02PM +, Julien Rioux wrote: > Enrico Forestieri lyx.org> writes: > > > > > On Wed, Oct 26, 2011 at 12:04:08PM +, Julien Rioux wrote: > > > > > > The real issue are all the converters using python. > > > > The attached patch should also take care of that. >

Re: [patch] python support

2011-10-28 Thread Jean-Marc Lasgouttes
Le 28/10/2011 14:18, Julien Rioux a écrit : The magic replacement of "python -tt" is very hackish we should probably make it a proper "token", maybe $$p. For example I change "python -t" and it breaks. In certain cases maybe I really mean to use python 3 for a particular converter, yet internally

Re: [patch] python support

2011-10-28 Thread Julien Rioux
Enrico Forestieri lyx.org> writes: > > On Wed, Oct 26, 2011 at 12:04:08PM +, Julien Rioux wrote: > > > > The real issue are all the converters using python. > > The attached patch should also take care of that. > The patch does not compile, you need #include "support/debug.h" at the top

Re: [patch] python support

2011-10-26 Thread Enrico Forestieri
On Wed, Oct 26, 2011 at 12:04:08PM +, Julien Rioux wrote: > > The real issue are all the converters using python. The attached patch should also take care of that. -- Enrico Index: src/support/os.cpp === --- src/support/os.cpp

Re: [patch] python support

2011-10-26 Thread Enrico Forestieri
On Wed, Oct 26, 2011 at 03:20:09PM +0200, Enrico Forestieri wrote: > On Wed, Oct 26, 2011 at 12:04:08PM +, Julien Rioux wrote: > > > Can somebody with more know-how do this? > > If you mean runtime detection, I could try to do it. Please try the attached patch. -- Enrico Index: src/support

Re: Re: [patch] python support

2011-10-26 Thread Kornel Benko
Am Mittwoch, 26. Oktober 2011 um 12:06:57, schrieb Julien Rioux > Kornel Benko lyx.org> writes: > > But trivial. Would be like the attached (Top-level CMakeLists.txt) > > I cannot test it, on newest ubuntu is still version <3 installed. > > > > > > > This checks for both python2 and python?

Re: [patch] python support

2011-10-26 Thread Enrico Forestieri
On Wed, Oct 26, 2011 at 12:04:08PM +, Julien Rioux wrote: > Enrico Forestieri lyx.org> writes: > > > > > On Wed, Oct 26, 2011 at 11:08:33AM +0200, Jean-Marc Lasgouttes wrote: > > > Le 26/10/2011 02:07, Julien Rioux a écrit : > > > >One approach to use the correct `python' (e.g., it could be

Re: [patch] python support

2011-10-26 Thread Julien Rioux
Kornel Benko lyx.org> writes: > But trivial. Would be like the attached (Top-level CMakeLists.txt) > I cannot test it, on newest ubuntu is still version <3 installed. > > This checks for both python2 and python? For what it's worth, autoconf checks also for python2.6 etc. Does it generate os.

Re: [patch] python support

2011-10-26 Thread Julien Rioux
Enrico Forestieri lyx.org> writes: > > On Wed, Oct 26, 2011 at 11:08:33AM +0200, Jean-Marc Lasgouttes wrote: > > Le 26/10/2011 02:07, Julien Rioux a écrit : > > >One approach to use the correct `python' (e.g., it could be `python2' > > >because `python' points to version >3.0) is to have configu

Re: [patch] python support

2011-10-26 Thread Enrico Forestieri
On Wed, Oct 26, 2011 at 11:08:33AM +0200, Jean-Marc Lasgouttes wrote: > Le 26/10/2011 02:07, Julien Rioux a écrit : > >One approach to use the correct `python' (e.g., it could be `python2' > >because `python' points to version >3.0) is to have configure generate > >the affected files. > > > >Summar

Re: [patch] python support

2011-10-26 Thread Jean-Marc Lasgouttes
Le 26/10/2011 02:07, Julien Rioux a écrit : One approach to use the correct `python' (e.g., it could be `python2' because `python' points to version >3.0) is to have configure generate the affected files. Summary: Rename os.cpp -> os.cpp.in Rename configure.py -> configure.py.in Replace `python'

Re: Re: [patch] python support

2011-10-26 Thread Kornel Benko
Am Mittwoch, 26. Oktober 2011 um 07:07:47, schrieb Stephan Witt > Am 26.10.2011 um 02:07 schrieb Julien Rioux: > > > One approach to use the correct `python' (e.g., it could be `python2' > > because `python' points to version >3.0) is to have configure generate the > > affected files. > > > >

Re: [patch] python support

2011-10-25 Thread Stephan Witt
Am 26.10.2011 um 02:07 schrieb Julien Rioux: > One approach to use the correct `python' (e.g., it could be `python2' because > `python' points to version >3.0) is to have configure generate the affected > files. > > Summary: > Rename os.cpp -> os.cpp.in > Rename configure.py -> configure.py.in