On Sat, Oct 24, 2009 at 1:18 PM, Robert Bradshaw
<[email protected]> wrote:
> On Oct 24, 2009, at 9:28 AM, Mark Lodato wrote:
>
>> I just updated to the latest cython-devel and now `make' fails with:
>>
>> python setup.py build_ext --inplace
>> Compiling module Cython.Compiler.Parsing ...
>> ERROR: 'ModuleNode' object has no attribute 'directive_comments'
>> Extension module compilation failed, using plain Python implementation
>> running build_ext
>
> Hmm... I'm unable to reproduce this. I just made a fresh clone and
>
> python setup.py build_ext --inplace
>
> worked just fine. I wonder if its conflicting with an older version of
> Cython it's finding somewhere.


The problem was that `make clean' does not remove
Cython/Compiler/Parsing.c, .so, etc, so I was using an old version of
these.  I believe GNU make does not interpret the curly brackets, so
it is trying to remove "Cython/Compiler/Parsing.{c,so,pyd}", which
does not exist.  Here's a patch to fix it:

--- 8< ---
diff --git i/Makefile w/Makefile
index 6fdb6f9..7bc9674 100644
--- i/Makefile
+++ w/Makefile
@@ -11,11 +11,21 @@ clean:
        @rm -f *.pyc */*.pyc */*/*.pyc
        @rm -f *~ */*~ */*/*~
        @rm -f core */core
-       @rm -f Cython/Compiler/Parsing.{c,so,pyd}
-       @rm -f Cython/Compiler/Scanning.{c,so,pyd}
-       @rm -f Cython/Compiler/Visitor.{c,so,pyd}
-       @rm -f Cython/Runtime/refnanny.{c,so,pyd}
-       @rm -f Cython/Plex/Scanners.{c,so,pyd}
+       @rm -f Cython/Compiler/Parsing.c
+       @rm -f Cython/Compiler/Parsing.so
+       @rm -f Cython/Compiler/Parsing.pyd
+       @rm -f Cython/Compiler/Scanning.c
+       @rm -f Cython/Compiler/Scanning.so
+       @rm -f Cython/Compiler/Scanning.pyd
+       @rm -f Cython/Compiler/Visitor.c
+       @rm -f Cython/Compiler/Visitor.so
+       @rm -f Cython/Compiler/Visitor.pyd
+       @rm -f Cython/Runtime/refnanny.c
+       @rm -f Cython/Runtime/refnanny.so
+       @rm -f Cython/Runtime/refnanny.pyd
+       @rm -f Cython/Plex/Scanners.c
+       @rm -f Cython/Plex/Scanners.so
+       @rm -f Cython/Plex/Scanners.pyd
        @(cd Demos; $(MAKE) clean)

 testclean:
--- >8 ---
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to