Re: Python .pyc files

2004-02-19 Thread Jose' Matos
On Thursday 19 February 2004 16:04, Jean-Marc Lasgouttes wrote: [...] > I think it checks the timestamp. Makes sense but I didn't knew that. :-) [...] > Jose'> So something like: %.pyc : %.py python -c "import py_compile; > Jose'> import sys; py_compile.compile(sys.argv[1])" %.py > > Jose'> W

Re: Python .pyc files

2004-02-19 Thread Jose' Matos
On Thursday 19 February 2004 16:07, Lars Gullik Bjønnes wrote: > | What if they are architecture or system dependent? > > Wouldn't that just be another arguemtn to have teh pyc files generated > by make? The only problem I see is that those pyc files are tied with the python version. -- José A

Re: Python .pyc files

2004-02-19 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Christian Ridderström <[EMAIL PROTECTED]> writes: Lars> | On Thu, 19 Feb 2004, Jean-Marc Lasgouttes wrote: >> >>> Jose', would it be possible to have these files generated at >>> 'make' time? >> Lars> | What if they are archite

Re: Python .pyc files

2004-02-19 Thread Lars Gullik Bjønnes
Christian Ridderström <[EMAIL PROTECTED]> writes: | On Thu, 19 Feb 2004, Jean-Marc Lasgouttes wrote: > >> >> Jose', would it be possible to have these files generated at 'make' >> time? > | What if they are architecture or system dependent? Wouldn't that just be another arguemtn to have teh pyc

Re: Python .pyc files

2004-02-19 Thread Jean-Marc Lasgouttes
> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: Jose'> Also I'm afraid that python could use the wrong version, that Jose'> is, if the precompiled version is available then use it instead Jose'> of the original file. I think it checks the timestamp. Note that the laternative is to dis

Re: Python .pyc files

2004-02-19 Thread Jose' Matos
On Thursday 19 February 2004 15:46, Jean-Marc Lasgouttes wrote: > > As you may not know, stuff in $prefix/share is supposed to be > system-independent, which is not the case with $prefix/bin and > $prefix/lib. As far as I know those files are system independent, but depend on the python version

Re: Python .pyc files

2004-02-19 Thread Jose' Matos
On Thursday 19 February 2004 13:44, Jean-Marc Lasgouttes wrote: > I just nothing some rather unfortunate fact: in the 1.3.4 distribution > I have: > > fantomas[ssh]: ll lyx-1.3.4/lib/lyx2lyx/ > total 113 > -rw-r--r-- 1 lasgoutt preval 1232 Feb 10 16:56 error.py > -rw-r--r-- 1 lasgoutt prev

Re: Python .pyc files

2004-02-19 Thread Jean-Marc Lasgouttes
> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: Jose'> On Thursday 19 February 2004 15:02, Christian Ridderström Jose'> wrote: >> What if they are architecture or system dependent? Jose'> But that is the point of make, isn't it? ;-) Jose'> I don't think they are system dependent, t

Re: Python .pyc files

2004-02-19 Thread Jose' Matos
On Thursday 19 February 2004 15:02, Christian Ridderström wrote: > > What if they are architecture or system dependent? But that is the point of make, isn't it? ;-) I don't think they are system dependent, they are precompiled and then interpreted by python. But in this case that is not the

Re: Python .pyc files

2004-02-19 Thread Christian Ridderström
On Thu, 19 Feb 2004, Jean-Marc Lasgouttes wrote: > > Jose', would it be possible to have these files generated at 'make' > time? What if they are architecture or system dependent? /Christian -- Christian Ridderström http://www.md.kth.se/~chr