Commit da06b146 authored by Stefan Behnel's avatar Stefan Behnel

fix tracing the scanner

parent 7de2779d
...@@ -9,7 +9,7 @@ cdef initial_compile_time_env() ...@@ -9,7 +9,7 @@ cdef initial_compile_time_env()
cdef class Method: cdef class Method:
cdef object name cdef object name
cdef object __name__ cdef readonly object __name__ # for tracing the scanner
@cython.final @cython.final
cdef class CompileTimeScope: cdef class CompileTimeScope:
......
PYTHON setup.py build_ext --inplace
######## setup.py ###########
from distutils.core import setup
from Cython.Build import cythonize
import Cython.Compiler.Scanning
Cython.Compiler.Scanning.trace_scanner = 1
setup(
ext_modules = cythonize("*.pyx")
)
import simple
assert simple.test() == 123
######## simple.pyx ###########
def test():
return 123
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment