[Cython] cython broken

Lisandro Dalcin dalcinl at gmail.com
Wed Apr 6 19:14:48 CEST 2011


Since the commit below, Cython fails to compile itself. That fix
requires further work and definitely more tests. If that is impossible
right now, I would ask the guilty parties to revert the change and
continue working on this the bug tracker and repo clones. Please try
to keep cython-dev repo clean.


commit 3069c3e516fc7336b003861881623f30e168849e
Author: Haoyu Bai <baihaoyu at gmail.com>
Date:   Thu Mar 31 04:19:14 2011 +0800

    fix T477 by refactor FuncDefNode, so cython decorators can applied
to cdef function


See yourself:

$ git checkout 3069c3e516fc7336b003861881623f30e168849e
Note: checking out '3069c3e516fc7336b003861881623f30e168849e'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 3069c3e... fix T477 by refactor FuncDefNode, so cython
decorators can applied to cdef function
[dalcinl at trantor cython-dev]$ python setup.py --name
Compiling module Cython.Compiler.Scanning ...
Compiling module Cython.Compiler.Parsing ...
Compiling module Cython.Compiler.Code ...

Error compiling Cython file:
------------------------------------------------------------
...
        self.cname = cname
        self.text = text
        self.escaped_value = StringEncoding.escape_byte_string(byte_string)
        self.py_strings = None

    def get_py_string_const(self, encoding, identifier=None, is_str=False):
   ^
------------------------------------------------------------

Cython/Compiler/Code.py:316:4: Signature not compatible with previous
declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef public object text
    cdef public object escaped_value
    cdef public dict py_strings

    @cython.locals(intern=bint, is_str=bint, is_unicode=bint)
    cpdef get_py_string_const(self, encoding, identifier=*, is_str=*)
                             ^
------------------------------------------------------------

Cython/Compiler/Code.pxd:62:30: Previous declaration is here
Compilation failed
Cython




-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169


More information about the cython-devel mailing list