• Kirill Smelkov's avatar
    X Cythonize in py2 mode · 99c75057
    Kirill Smelkov authored
    Previously it was failing with master:
    
    (neo) (z-dev) (g.env) kirr@deco:~/src/tools/py/cython/t/compilebench$ ./doit.sh
    /home/kirr/src/tools/py/cython/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/kirr/src/tools/py/cython/t/compilebench/pystone_pyxtest.py
      tree = Parsing.p_module(s, pxd, full_module_name)
    
    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    TRUE = 1
    FALSE = 0
    
    def main(loops=LOOPS):
        benchtime, stones = pystones(loops)
        print "Pystone(%s) time for %d passes = %g" % \
             ^
    ------------------------------------------------------------
    
    pystone_pyxtest.py:62:10: Syntax error in simple statement list
    99c75057
doit.sh 1.84 KB