Re: [sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Jeroen Demeyer
On 2015-09-22 13:59, Vincent Delecroix wrote: On 22/09/15 08:57, Jeroen Demeyer wrote: On 2015-09-22 13:23, Jean-Pierre Flori wrote: Or does %runfile just run cython on the file without further thoughts? No, it's worse: it runs Cython with some additional *bad thoughts*. Do we just need to

Re: [sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Vincent Delecroix
On 22/09/15 08:57, Jeroen Demeyer wrote: On 2015-09-22 13:23, Jean-Pierre Flori wrote: Or does %runfile just run cython on the file without further thoughts? No, it's worse: it runs Cython with some additional *bad thoughts*. Do we just need to get rid of this use_cache=True? Vincent -- Yo

Re: [sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Jeroen Demeyer
On 2015-09-22 13:23, Jean-Pierre Flori wrote: Or does %runfile just run cython on the file without further thoughts? No, it's worse: it runs Cython with some additional *bad thoughts*. Cython does dependency tracking just fine, it's the Sage wrapper which breaks it. -- You received this mes

Re: [sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Jean-Pierre Flori
On Tuesday, September 22, 2015 at 1:16:46 PM UTC+2, Nathann Cohen wrote: > > > This works > > > > sage: !touch my_file.pyx > > sage: %runfile my_file.pyx > > Indeed, but I wouldn't mind if it were automatic somehow :-/ > > Nathann > Isn't it possible to add some distutils directive to trac

Re: [sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Vincent Delecroix
On 22/09/15 08:16, Nathann Cohen wrote: This works sage: !touch my_file.pyx sage: %runfile my_file.pyx Indeed, but I wouldn't mind if it were automatic somehow :-/ It would be reasonable to me that %runfile does execute (or compile) the file whatever the filestamp says. For automatic recomp

Re: [sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Nathann Cohen
> This works > > sage: !touch my_file.pyx > sage: %runfile my_file.pyx Indeed, but I wouldn't mind if it were automatic somehow :-/ Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails

Re: [sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Vincent Delecroix
This works sage: !touch my_file.pyx sage: %runfile my_file.pyx Vincent On 22/09/15 06:27, Nathann Cohen wrote: Hello everybody, I work on a c++ file which I call in Sage, through a .pyx file. More practically, I have a .pyx file that contains these lines: cdef extern from "/home/ncohen/

[sage-devel] Recompile .pyx when its .cc dependency changed

2015-09-22 Thread Nathann Cohen
Hello everybody, I work on a c++ file which I call in Sage, through a .pyx file. More practically, I have a .pyx file that contains these lines: cdef extern from "/home/ncohen/lexbfs.cc" : void hello(); hello() Now, the code of the .pyx file never changes (it only calls the c++ f