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-08-02 Thread Robert Bradshaw
On Tue, Jul 23, 2013 at 2:25 AM, Felix Salfelder wrote: > 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 port

Re: [Cython] patch for #655

2013-07-28 Thread Stefan Behnel
Felix Salfelder, 23.07.2013 11:25: > On Fri, Jun 28, 2013 at 06:39:45AM +0200, Stefan Behnel wrote: >> Even writing a correct makefile requires a huge amount of digging into >> distutils. > > makefiles are documented in the make manual of your favourite make > implementation. I don't know why you

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 Stefan Behnel
Felix Salfelder, 27.06.2013 23:06: > 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

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 Robert Bradshaw
On Thu, Jun 27, 2013 at 12:18 PM, Felix Salfelder wrote: > 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: doe

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 Robert Bradshaw
On Thu, Jun 27, 2013 at 10:25 AM, Felix Salfelder wrote: > 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

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 Robert Bradshaw
On Thu, Jun 27, 2013 at 1:26 AM, Felix Salfelder wrote: > 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. I

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 Stefan Behnel
Felix Salfelder, 25.06.2013 10:34: > On Tue, Jun 25, 2013 at 01:06:35AM -0700, Robert Bradshaw wrote: >> I'm still, however, trying to figure out exactly what the usecase for >> this is. > > it's about keeping track of build dependencies. > >> Generally extensions are created with distutils, and

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

Re: [Cython] patch for #655

2013-06-25 Thread Robert Bradshaw
We prefer changes as pull requests to https://github.com/cython/cython? 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. I'm sti