Re: Python version of configure script (preview version)

2005-09-19 Thread Lars Gullik Bjønnes
Jose' Matos [EMAIL PROTECTED] writes: | On Thursday 15 September 2005 20:58, Bo Peng wrote: | Dear list, | | Attached is a Python version of the configure script. I currently do | not have access to a windows machine with lyx on so I can not test it | on windows. On my linux machine, it

Re: Python version of configure script (preview version)

2005-09-19 Thread Jean-Marc Lasgouttes
Bo == Bo Peng [EMAIL PROTECTED] writes: Not if you use start as viewer of any file that is supported by windows (the problem is to discover that). Bo start is a DOS command (as far as I know). In a cmd windows, start Bo can open a file using its associated application. However, I tried Bo to

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Sun, 18 Sep 2005, Bo Peng wrote: I know, we have decided to proceed since this code is supposed to be only run in windows and there the above argument does not apply. I would guess that every new install will have at least python 2.3 installed. :-) This solves the problem by now

Re: Python version of configure script (preview version)

2005-09-19 Thread Angus Leeming
[EMAIL PROTECTED] wrote: On Sun, 18 Sep 2005, Bo Peng wrote: I know, we have decided to proceed since this code is supposed to be only run in windows and there the above argument does not apply. I would guess that every new install will have at least python 2.3 installed. :-)

Re: Python version of configure script (preview version)

2005-09-19 Thread Bo Peng
I run RH 7.3 on a laptop at home. If you'd like I could test it (just let me know what to do). You first need to replace all A += B to A = A + B, and replace any str.count(), str.replace() with something equivalent in 1.5.2. (I do not know what they are since I never used them.) Since you do

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Mon, 19 Sep 2005, Bo Peng wrote: I run RH 7.3 on a laptop at home. If you'd like I could test it (just let me know what to do). You first need to replace all A += B to A = A + B, and replace any str.count(), str.replace() with something equivalent in 1.5.2. (I do not know what they

Re: Python version of configure script (preview version)

2005-09-19 Thread Bo Peng
Um.. I think the info I need is a bit more basic than so... For instance, can I just run the script with some arguments? Where can I get the script (can I use the CVS browser)? You need to get the latest cvs. configure.py is under the lib directory. You can run it without any argument. If

Re: Python version of configure script (preview version)

2005-09-19 Thread Lars Gullik Bjønnes
Bo Peng [EMAIL PROTECTED] writes: | Um.. I think the info I need is a bit more basic than so... For instance, | can I just run the script with some arguments? Where can I get the | script (can I use the CVS browser)? | | You need to get the latest cvs. configure.py is under the lib |

Re: Python version of configure script (preview version)

2005-09-19 Thread Jean-Marc Lasgouttes
Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars This script is not for 1.4 anyway. Lars leave 1.5 as requirement for 1.4 , go for 2.x for 1.5. Note that we may want to go to the python version for some 1.4.x (x0) version, especially since it will help packaging on windows. We'll

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Mon, 19 Sep 2005, Jean-Marc Lasgouttes wrote: Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars This script is not for 1.4 anyway. Lars leave 1.5 as requirement for 1.4 , go for 2.x for 1.5. Note that we may want to go to the python version for some 1.4.x (x0) version,

Re: Python version of configure script (preview version)

2005-09-19 Thread Georg Baum
[EMAIL PROTECTED] wrote: On Mon, 19 Sep 2005, Jean-Marc Lasgouttes wrote: Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars This script is not for 1.4 anyway. Lars leave 1.5 as requirement for 1.4 , go for 2.x for 1.5. Note that we may want to go to the python version for

Re: Python version of configure script (preview version)

2005-09-19 Thread Jose' Matos
On Monday 19 September 2005 16:46, Georg Baum wrote: No, it is not (see the comments by Lars and Jean-Marc above). We'll have the requirement of python 2.x anyway when configure.py finally replaces configure.m4. Since we call python trough lyx we could easily have a defined variable to say

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Mon, 19 Sep 2005, Georg Baum wrote: No, it is not (see the comments by Lars and Jean-Marc above). We'll have the requirement of python 2.x anyway when configure.py finally replaces configure.m4. Ok, I'll leave it then. /C -- Christian Ridderström, +46-8-768 39 44

Re: Python version of configure script (preview version)

2005-09-19 Thread Lars Gullik Bjønnes
"Jose' Matos" <[EMAIL PROTECTED]> writes: | On Thursday 15 September 2005 20:58, Bo Peng wrote: | > Dear list, | > | > Attached is a Python version of the configure script. I currently do | > not have access to a windows machine with lyx on so I can not test it | > on windows. On my linux

Re: Python version of configure script (preview version)

2005-09-19 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> Not if you use "start" as viewer of any file that is supported by >> windows (the problem is to discover that). Bo> start is a DOS command (as far as I know). In a cmd windows, start Bo> can open a file using its associated application.

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Sun, 18 Sep 2005, Bo Peng wrote: > > I know, we have decided to proceed since this code is supposed to be only > > run in windows and there the above argument does not apply. I would guess > > that every new install will have at least python 2.3 installed. :-) > > > > This solves the

Re: Python version of configure script (preview version)

2005-09-19 Thread Angus Leeming
[EMAIL PROTECTED] wrote: > On Sun, 18 Sep 2005, Bo Peng wrote: > >> > I know, we have decided to proceed since this code is supposed to be >> > only >> > run in windows and there the above argument does not apply. I would >> > guess that every new install will have at least python 2.3

Re: Python version of configure script (preview version)

2005-09-19 Thread Bo Peng
> I run RH 7.3 on a laptop at home. If you'd like I could test it (just let > me know what to do). > You first need to replace all A += B to A = A + B, and replace any str.count(), str.replace() with something equivalent in 1.5.2. (I do not know what they are since I never used them.) Since you

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Mon, 19 Sep 2005, Bo Peng wrote: > > I run RH 7.3 on a laptop at home. If you'd like I could test it (just let > > me know what to do). > > You first need to replace all A += B to A = A + B, and replace any > str.count(), str.replace() with something equivalent in 1.5.2. (I do > not know what

Re: Python version of configure script (preview version)

2005-09-19 Thread Bo Peng
> Um.. I think the info I need is a bit more basic than so... For instance, > can I just run the script with some arguments? Where can I get the > script (can I use the CVS browser)? You need to get the latest cvs. configure.py is under the lib directory. You can run it without any argument. If

Re: Python version of configure script (preview version)

2005-09-19 Thread Lars Gullik Bjønnes
Bo Peng <[EMAIL PROTECTED]> writes: | > Um.. I think the info I need is a bit more basic than so... For instance, | > can I just run the script with some arguments? Where can I get the | > script (can I use the CVS browser)? | | You need to get the latest cvs. configure.py is under the lib |

Re: Python version of configure script (preview version)

2005-09-19 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> This script is not for 1.4 anyway. Lars> leave 1.5 as requirement for 1.4 , go for 2.x for 1.5. Note that we may want to go to the python version for some 1.4.x (x>0) version, especially since it will help packaging on

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Mon, 19 Sep 2005, Jean-Marc Lasgouttes wrote: > > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Lars> This script is not for 1.4 anyway. > > Lars> leave 1.5 as requirement for 1.4 , go for 2.x for 1.5. > > Note that we may want to go to the python version for some 1.4.x

Re: Python version of configure script (preview version)

2005-09-19 Thread Georg Baum
[EMAIL PROTECTED] wrote: > On Mon, 19 Sep 2005, Jean-Marc Lasgouttes wrote: > >> > "Lars" == Lars Gullik Bjønnes >> > <[EMAIL PROTECTED]> writes: >> >> Lars> This script is not for 1.4 anyway. >> >> Lars> leave 1.5 as requirement for 1.4 , go for 2.x for 1.5. >> >> Note that we may

Re: Python version of configure script (preview version)

2005-09-19 Thread Jose' Matos
On Monday 19 September 2005 16:46, Georg Baum wrote: > No, it is not (see the comments by Lars and Jean-Marc above). We'll have > the requirement of python 2.x anyway when configure.py finally replaces > configure.m4. Since we call python trough lyx we could easily have a defined variable to

Re: Python version of configure script (preview version)

2005-09-19 Thread chr
On Mon, 19 Sep 2005, Georg Baum wrote: > No, it is not (see the comments by Lars and Jean-Marc above). We'll have > the requirement of python 2.x anyway when configure.py finally replaces > configure.m4. Ok, I'll leave it then. /C -- Christian Ridderström, +46-8-768 39 44

Re: Python version of configure script (preview version)

2005-09-18 Thread Angus Leeming
Bo Peng wrote: Hi, Augus, That's Angus ;-) Thank you for the patch. I have merged it to my version, plus some cosmetic changes. Great! I took the plunge and added it to the repository. Temp files: I wonder if it makes sense to use a wrapper to Python's tempfile module. Ie, use the tempfile

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
First, however, we should find out from José whether we still need to support really ancient Pythons in LyX 1.5 I have already used the tmpfile module in the cygwin/pathname part of the script. Bo

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Thursday 15 September 2005 20:58, Bo Peng wrote: Dear list, Attached is a Python version of the configure script. I currently do not have access to a windows machine with lyx on so I can not test it on windows. On my linux machine, it produces identical lyxrc.default and

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
World is a small place, really. I have seen your contributions around several places lately (R, rpy, ...) :-) Well, I make a living on python, r, rpy and lyx. I make contributions only to make my own life easier. :-) What is the minimum required python version for your script? As Angus

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 19:51, Bo Peng wrote: World is a small place, really. I have seen your contributions around several places lately (R, rpy, ...) :-) Well, I make a living on python, r, rpy and lyx. I make contributions only to make my own life easier. :-) I have packaged rpy

Re: Python version of configure script (preview version)

2005-09-18 Thread Angus Leeming
Jose' Matos wrote: mkstemp is used for the cygwin path detection, which is new to python 2.3. popen is used but it is not stable under windows prior to python 2.0. mkstemp can be easily replaced by using explicit temp file name but someone has to run the script with python 1.5.2 to tell the

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 21:52, Angus Leeming wrote: def get_version_info(): version_re = re.compile(([0-9])\.([0-9])) match = version_re.match(sys.version) if match == None: error(Unable to extract version info from 'sys.version') return int(match.group(1)),

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
I know, we have decided to proceed since this code is supposed to be only run in windows and there the above argument does not apply. I would guess that every new install will have at least python 2.3 installed. :-) This solves the problem by now but what if we want to add some new

Re: Python version of configure script (preview version)

2005-09-18 Thread Angus Leeming
Bo Peng wrote: > Hi, Augus, That's "Angus" ;-) > Thank you for the patch. I have merged it to my version, plus some > cosmetic changes. Great! I took the plunge and added it to the repository. Temp files: I wonder if it makes sense to use a wrapper to Python's tempfile module. Ie, use the

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
> First, however, we should find out from José whether we still need to > support really ancient Pythons in LyX 1.5 I have already used the tmpfile module in the cygwin/pathname part of the script. Bo

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Thursday 15 September 2005 20:58, Bo Peng wrote: > Dear list, > > Attached is a Python version of the configure script. I currently do > not have access to a windows machine with lyx on so I can not test it > on windows. On my linux machine, it produces identical lyxrc.default > and

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
> World is a small place, really. I have seen your contributions around > several places lately (R, rpy, ...) :-) Well, I make a living on python, r, rpy and lyx. I make contributions only to make my own life easier. :-) > What is the minimum required python version for your script? > As

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 19:51, Bo Peng wrote: > > World is a small place, really. I have seen your contributions around > > several places lately (R, rpy, ...) :-) > > Well, I make a living on python, r, rpy and lyx. I make contributions > only to make my own life easier. :-) I have

Re: Python version of configure script (preview version)

2005-09-18 Thread Angus Leeming
Jose' Matos wrote: >> mkstemp is used for the cygwin path detection, which is new to python >> 2.3. popen is used but "it is not stable under windows prior to python >> 2.0". mkstemp can be easily replaced by using explicit temp file name >> but someone has to run the script with python 1.5.2 to

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 21:52, Angus Leeming wrote: > > def get_version_info(): > version_re = re.compile("([0-9])\.([0-9])") > > match = version_re.match(sys.version) > if match == None: > error("Unable to extract version info from 'sys.version'") > > return

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
> I know, we have decided to proceed since this code is supposed to be only > run in windows and there the above argument does not apply. I would guess > that every new install will have at least python 2.3 installed. :-) > This solves the problem by now but what if we want to add some new

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
Well, you can always use Always? devel.lyx.org died. wiki pointed me to :ext:[EMAIL PROTECTED]:/usr/local/lyx/cvsroot (http://wiki.lyx.org/DevelTips/UsingCVS), the old devel site said pserver:[EMAIL PROTECTED]:/lyx/cvs , Augus said pserver:anoncvs AT anoncvs.us.lyx.org:/var/cvs. None of them

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
Dear list, Finally, I get the latest cvs. My configure.py generates identical lyxrc.defaults (subject to sort) and doc/Latexconfig.lyx as the bsh version, after changing the case of four characters. Anyway, the updated version is attached. This is under my linux box. No testing has been done

Re: Python version of configure script (preview version)

2005-09-17 Thread Kayvan A. Sylvan
On Fri, Sep 16, 2005 at 11:23:21PM -0700, Bo Peng wrote: Failing that, you can always browse ftp://ftp.sylvan.com/pub/lyx/devel and grab the latest CVS snapshot tar.bz2 file. This site is not official, isn't it? Why snapshot is not under the snapshot directory of ftp.lyx.org ? It's

Re: Python version of configure script (preview version)

2005-09-17 Thread Angus Leeming
Bo Peng wrote: Attached is a python version of lib/configure for 1.4.0 cvs. It is written according to the m4 file at http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/configure.m4 . Since I do not have access to lyx/cvs, I can only test it against 1.4.0pre1 from ftp.lyx.org. Please test

Re: Python version of configure script (preview version)

2005-09-17 Thread Kayvan A. Sylvan
On Sat, Sep 17, 2005 at 06:00:50PM +0100, Angus Leeming wrote: Angus, could you add this file to the repository? I'm perfectly happy to, but will wait on Jean-Marc's or Lars' say so. (Guys, I'm not proposing that the script be used or even distributed with LyX 1.4.0.) I don't think there's

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
(Guys, I'm not proposing that the script be used or even distributed with LyX 1.4.0.) I agree. It does not add (if not break) anything under linux. The reason for the conversion is to avoid using mingw under windows (so not even useful for lyx/cygwin) to simplify installation. The real benefit

Re: Python version of configure script (preview version)

2005-09-17 Thread Angus Leeming
Bo Peng wrote: Dear list, Attached is a python version of lib/configure for 1.4.0 cvs. It is written according to the m4 file at http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/configure.m4 . Since I do not have access to lyx/cvs, I can only test it against 1.4.0pre1 from ftp.lyx.org.

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
Not if you use start as viewer of any file that is supported by windows (the problem is to discover that). start is a DOS command (as far as I know). In a cmd windows, start can open a file using its associated application. However, I tried to use start $$i or cmd /c start $$i for pdf format

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
> Well, you can always use Always? devel.lyx.org died. wiki pointed me to :ext:[EMAIL PROTECTED]:/usr/local/lyx/cvsroot (http://wiki.lyx.org/DevelTips/UsingCVS), the old devel site said pserver:[EMAIL PROTECTED]:/lyx/cvs , Augus said pserver:anoncvs AT anoncvs.us.lyx.org:/var/cvs. None of them

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
Dear list, Finally, I get the latest cvs. My configure.py generates identical lyxrc.defaults (subject to sort) and doc/Latexconfig.lyx as the bsh version, after changing the case of four characters. Anyway, the updated version is attached. This is under my linux box. No testing has been done

Re: Python version of configure script (preview version)

2005-09-17 Thread Kayvan A. Sylvan
On Fri, Sep 16, 2005 at 11:23:21PM -0700, Bo Peng wrote: > > > Failing that, you can always browse ftp://ftp.sylvan.com/pub/lyx/devel > > and grab the latest CVS snapshot tar.bz2 file. > > This site is not official, isn't it? Why snapshot is not under the > snapshot directory of ftp.lyx.org ?

Re: Python version of configure script (preview version)

2005-09-17 Thread Angus Leeming
Bo Peng wrote: > Attached is a python version of lib/configure for 1.4.0 cvs. It is > written according to the m4 file at > http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/configure.m4 . > Since I do not have access to lyx/cvs, I can only test it against > 1.4.0pre1 from ftp.lyx.org. >

Re: Python version of configure script (preview version)

2005-09-17 Thread Kayvan A. Sylvan
On Sat, Sep 17, 2005 at 06:00:50PM +0100, Angus Leeming wrote: > > Angus, could you add this file to the repository? > > I'm perfectly happy to, but will wait on Jean-Marc's or Lars' say so. > (Guys, I'm not proposing that the script be used or even distributed with > LyX 1.4.0.) I don't think

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
> (Guys, I'm not proposing that the script be used or even distributed with > LyX 1.4.0.) I agree. It does not add (if not break) anything under linux. The reason for the conversion is to avoid using mingw under windows (so not even useful for lyx/cygwin) to simplify installation. The real

Re: Python version of configure script (preview version)

2005-09-17 Thread Angus Leeming
Bo Peng wrote: Dear list, Attached is a python version of lib/configure for 1.4.0 cvs. It is written according to the m4 file at http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/configure.m4 . Since I do not have access to lyx/cvs, I can only test it against 1.4.0pre1 from ftp.lyx.org.

Re: Python version of configure script (preview version)

2005-09-17 Thread Bo Peng
> Not if you use "start" as viewer of any file that is supported by > windows (the problem is to discover that). start is a DOS command (as far as I know). In a cmd windows, start can open a file using its associated application. However, I tried to use "start $$i" or "cmd /c start $$i" for pdf

Re: Python version of configure script (preview version)

2005-09-16 Thread Angus Leeming
Bo Peng wrote: Here's the output from my linux box together with a small fix. $ diff -u -Bbw ../build/lib/lyxrc.defaults . lyxrc.diff $ diff -u configure_orig.py configure.py configure.diff How do you like the attached new version? checkProg() now handles rc file and all info about

Re: Python version of configure script (preview version)

2005-09-16 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Bo Peng wrote: Here's the output from my linux box together with a small fix. $ diff -u -Bbw ../build/lib/lyxrc.defaults . lyxrc.diff $ diff -u configure_orig.py configure.py configure.diff How do you like the attached new version?

Re: Python version of configure script (preview version)

2005-09-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Concerning Bo's remark that a lot of win32/mac specific code is going to be added, we should think a bit about that before actually doing it. One solution would be to add code at LyX level to use OS-provided hooks for opening documents. Then we could decide that

Re: Python version of configure script (preview version)

2005-09-16 Thread Angus Leeming
Angus Leeming wrote: As for python's abilities in this regard, googling on python search registry turns up lots of stuff. Eg http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/174627 Also http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146305 -- Angus

Re: Python version of configure script (preview version)

2005-09-16 Thread Bo Peng
One problem with the rc approach is that re-configuration is required whenever users change a filetype association. Also, opening a file with its associated application is quite easy under windows. (There are APIs.) Bo

Re: Python version of configure script (preview version)

2005-09-16 Thread Jean-Marc Lasgouttes
Bo == Bo Peng [EMAIL PROTECTED] writes: Bo One problem with the rc approach is that re-configuration is Bo required whenever users change a filetype association. Not if you use start as viewer of any file that is supported by windows (the problem is to discover that). Bo Also, opening a file

Re: Python version of configure script (preview version)

2005-09-16 Thread Mike Meyer
In [EMAIL PROTECTED], Bo Peng [EMAIL PROTECTED] typed: One problem with the rc approach is that re-configuration is required whenever users change a filetype association. Also, opening a file with its associated application is quite easy under windows. (There are APIs.) Since Bo Peng didn't

Re: Python version of configure script (preview version)

2005-09-16 Thread Bo Peng
Dear list, Attached is a python version of lib/configure for 1.4.0 cvs. It is written according to the m4 file at http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/configure.m4 . Since I do not have access to lyx/cvs, I can only test it against 1.4.0pre1 from ftp.lyx.org. Please test this

Re: Python version of configure script (preview version)

2005-09-16 Thread Kayvan A. Sylvan
On Fri, Sep 16, 2005 at 09:12:20PM -0700, Bo Peng wrote: Since I do not have access to lyx/cvs, I can only test it against 1.4.0pre1 from ftp.lyx.org. Well, you can always use CVSROOT=:pserver:[EMAIL PROTECTED]:/var/cvs/lyx Then cvs login (password is lyx) Failing that, you can always browse

Re: Python version of configure script (preview version)

2005-09-16 Thread Angus Leeming
Bo Peng wrote: >> Here's the output from my linux box together with a small fix. >> >> $ diff -u -Bbw ../build/lib/lyxrc.defaults . > lyxrc.diff >> $ diff -u configure_orig.py configure.py > configure.diff > > How do you like the attached new version? checkProg() now > handles rc file and all

Re: Python version of configure script (preview version)

2005-09-16 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Bo Peng wrote: >>> Here's the output from my linux box together with a small fix. >>> >>> $ diff -u -Bbw ../build/lib/lyxrc.defaults . > lyxrc.diff $ diff >>> -u configure_orig.py configure.py > configure.diff >> How do you like

Re: Python version of configure script (preview version)

2005-09-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Concerning Bo's remark that a lot of win32/mac specific code is > going to be added, we should think a bit about that before actually > doing it. > > One solution would be to add code at LyX level to use OS-provided > hooks for opening documents. Then we could decide

Re: Python version of configure script (preview version)

2005-09-16 Thread Angus Leeming
Angus Leeming wrote: > As for python's abilities in this regard, googling on "python search > registry" turns up lots of stuff. Eg > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/174627 Also http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146305 -- Angus

Re: Python version of configure script (preview version)

2005-09-16 Thread Bo Peng
One problem with the rc approach is that re-configuration is required whenever users change a filetype association. Also, opening a file with its associated application is quite easy under windows. (There are APIs.) Bo

Re: Python version of configure script (preview version)

2005-09-16 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: Bo> One problem with the rc approach is that re-configuration is Bo> required whenever users change a filetype association. Not if you use "start" as viewer of any file that is supported by windows (the problem is to discover that). Bo> Also,

Re: Python version of configure script (preview version)

2005-09-16 Thread Mike Meyer
In <[EMAIL PROTECTED]>, Bo Peng <[EMAIL PROTECTED]> typed: > One problem with the rc approach is that re-configuration is required > whenever users change a filetype association. Also, opening a file > with its associated application is quite easy under windows. (There are APIs.) Since Bo Peng

Re: Python version of configure script (preview version)

2005-09-16 Thread Bo Peng
Dear list, Attached is a python version of lib/configure for 1.4.0 cvs. It is written according to the m4 file at http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/configure.m4 . Since I do not have access to lyx/cvs, I can only test it against 1.4.0pre1 from ftp.lyx.org. Please test this

Re: Python version of configure script (preview version)

2005-09-16 Thread Kayvan A. Sylvan
On Fri, Sep 16, 2005 at 09:12:20PM -0700, Bo Peng wrote: > Since I do not have access to lyx/cvs, I can only test it against > 1.4.0pre1 from ftp.lyx.org. Well, you can always use CVSROOT=:pserver:[EMAIL PROTECTED]:/var/cvs/lyx Then "cvs login" (password is "lyx") Failing that, you can always

Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
Dear list, Attached is a Python version of the configure script. I currently do not have access to a windows machine with lyx on so I can not test it on windows. On my linux machine, it produces identical lyxrc.default and doc/LaTeXConfig.lyx but no further testing/proof-read of the code has been

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: Dear list, Attached is a Python version of the configure script. I currently do not have access to a windows machine with lyx on so I can not test it on windows. On my linux machine, it produces identical lyxrc.default and doc/LaTeXConfig.lyx but no further

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
In anticipation of this being rolled into the LyX repository, can I get you to drop an email to this list (replying to this mail would be perfect) in which you state explicitly that you agree to licence your contributions under the terms of the Gnu General Public Licence version 2 or later. I

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
I'll then roll you into lib/generate_contributions.py. I guess further testing and optimization is needed first? Adjust PATH for Win32 (Cygwin) # i.e., change /cygdrive/c to c: # # FIXME: necessary? I assume that lyx/win does not like cygwin. There's LyX/Win but there's also

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: In anticipation of this being rolled into the LyX repository, can I get you to drop an email to this list (replying to this mail would be perfect) in which you state explicitly that you agree to licence your contributions under the terms of the Gnu General Public Licence

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: I'll then roll you into lib/generate_contributions.py. I guess further testing and optimization is needed first? We're in feature freeze for LyX 1.4 right now, so configure.py won't get added to the distribution till that is out. That said, I can't see why it couldn't be added

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
That said, I can't see why it couldn't be added to the repository right now. Would make it easier to get people to test it and for you to have a back up. Not a big deal. It is just that this version is a 'direct translation' of the bsh version and there will be big changes once we know it is

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: Dear list, Attached is a Python version of the configure script. I currently do not have access to a windows machine with lyx on so I can not test it on windows. On my linux machine, it produces identical lyxrc.default and doc/LaTeXConfig.lyx but no further

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
Here's the output from my linux box together with a small fix. $ diff -u -Bbw ../build/lib/lyxrc.defaults . lyxrc.diff $ diff -u configure_orig.py configure.py configure.diff How do you like the attached new version? checkProg() now handles rc file and all info about checked program is now

Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
Dear list, Attached is a Python version of the configure script. I currently do not have access to a windows machine with lyx on so I can not test it on windows. On my linux machine, it produces identical lyxrc.default and doc/LaTeXConfig.lyx but no further testing/proof-read of the code has been

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: > Dear list, > > Attached is a Python version of the configure script. I currently do > not have access to a windows machine with lyx on so I can not test it > on windows. On my linux machine, it produces identical lyxrc.default > and doc/LaTeXConfig.lyx but no further

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
> In anticipation of this being rolled into the LyX repository, can I get you > to drop an email to this list (replying to this mail would be perfect) in > which you state explicitly that you agree to licence your contributions > under the terms of the Gnu General Public Licence version 2 or

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
> I'll then roll you into lib/generate_contributions.py. I guess further testing and optimization is needed first? > Adjust PATH for Win32 (Cygwin) > # i.e., change /cygdrive/c to c: > # > # FIXME: necessary? I assume that lyx/win does not like cygwin. > There's LyX/Win but there's also

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: >> In anticipation of this being rolled into the LyX repository, can I get >> you to drop an email to this list (replying to this mail would be >> perfect) in which you state explicitly that you agree to licence your >> contributions under the terms of the Gnu General Public

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: >> I'll then roll you into lib/generate_contributions.py. > I guess further testing and optimization is needed first? We're in feature freeze for LyX 1.4 right now, so configure.py won't get added to the distribution till that is out. That said, I can't see why it couldn't be

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
> That said, I can't see why it couldn't be added to the repository right now. > Would make it easier to get people to test it and for you to have a back up. Not a big deal. It is just that this version is a 'direct translation' of the bsh version and there will be big changes once we know it is

Re: Python version of configure script (preview version)

2005-09-15 Thread Angus Leeming
Bo Peng wrote: > Dear list, > > Attached is a Python version of the configure script. I currently do > not have access to a windows machine with lyx on so I can not test it > on windows. On my linux machine, it produces identical lyxrc.default > and doc/LaTeXConfig.lyx but no further

Re: Python version of configure script (preview version)

2005-09-15 Thread Bo Peng
> Here's the output from my linux box together with a small fix. > > $ diff -u -Bbw ../build/lib/lyxrc.defaults . > lyxrc.diff > $ diff -u configure_orig.py configure.py > configure.diff How do you like the attached new version? checkProg() now handles rc file and all info about checked program