Re: [Cython] bug in cythonize dependency tracking?

2013-08-25 Thread Felix Salfelder
On Sun, Aug 25, 2013 at 08:08:50PM +0200, Stefan Behnel wrote: > > This might be a bug, depending on whether cythonize is meant to refresh > > output files consistently. > > May not really be a bug, but the current dependency tracking has its > limits, yes. > > Another issue is that it doesn't re

[Cython] bug in cythonize dependency tracking?

2013-08-25 Thread Felix Salfelder
Hi there. Lets say, i have foo.pyx. and use cythonize() to generate foo.c. Calling cythonize() a second time will correctly do nothing, because foo.c has been modified after foo.pyx. If I now add foo.pxd, cythonize will correctly update foo.c. In general foo.c now looks different. But: Deleting f

Re: [Cython] patch for #655

2013-08-05 Thread Felix Salfelder
On Fri, Aug 02, 2013 at 10:36:48PM -0700, Robert Bradshaw wrote: > > its bearable, and it's just automake. manually created makefiles are not > > affected. why does cython use .pyx for two different things? what would > > be the canonical extension for C++ cython files? i've chosen to use .pyxx, >

Re: [Cython] patch for #655

2013-07-23 Thread Felix Salfelder
On Fri, Jun 28, 2013 at 06:39:45AM +0200, Stefan Behnel wrote: > > the only thing that will affect the user (and which i should mention) > > is: make uses file extensions to determine file types. particularly, i > > have not found a portable hack that allows the use of .pyx for both .c > > and .cpp

Re: [Cython] patch for #655

2013-06-27 Thread Felix Salfelder
On Thu, Jun 27, 2013 at 12:39:48PM -0700, Robert Bradshaw wrote: > Building Python extensions with makefiles/autotools rather than > distutils is less supported, but I suppose you could do that manually. i've done that. I ran into a few peculiarities with "-I", "-w", and __init__.py, but nothing s

Re: [Cython] patch for #655

2013-06-27 Thread Felix Salfelder
Hi Robert. On Thu, Jun 27, 2013 at 11:05:48AM -0700, Robert Bradshaw wrote: > And you're planning on calling cython manually, cutting distutils out > of the loop completely? If someone tells me, how to fix distutils, (better: does it), i might change my mind. also, I need VPATH... just something

Re: [Cython] patch for #655

2013-06-27 Thread Felix Salfelder
On Thu, Jun 27, 2013 at 09:23:21AM -0700, Robert Bradshaw wrote: > > explicit dependency tracking would imply "manual". which is painful and > > error-prone. without running gcc -M (with all flags) you cannot even > > guess the headers used transitively. I haven't found a gcc -M call > > within the

Re: [Cython] patch for #655

2013-06-27 Thread Felix Salfelder
Hi Stefan. On Thu, Jun 27, 2013 at 08:58:28AM +0200, Stefan Behnel wrote: > Make doesn't know that either. Cython at least knows which ones are used > directly. Handling transitive dependencies would require parsing header > files. If you need to keep track of changes in transitively included head

Re: [Cython] patch for #655

2013-06-26 Thread Felix Salfelder
On Tue, Jun 25, 2013 at 01:06:35AM -0700, Robert Bradshaw wrote: > One first comment, I think it's a lot to reserve three flags for this. > Perhaps "-M [filename] would be sufficient, using the convention that > - is stdout. If necessary, we could have a special syntax for the -D > option. it's a

[Cython] patch for #655

2013-06-23 Thread Felix Salfelder
Hi there. i am preparing a patch for #655 (write dependency makefiles) at [1]. I think it's best to use the -M, -F and -D short options for this functionality. please comment, improve and/or merge. regards felix [1] http://trac.sagemath.org/sage_trac/ticket/14728