File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ [run]
2+ plugins = Cython.Coverage
3+ source = raysect
4+ omit = *tests*
Original file line number Diff line number Diff line change 88use_cython = True
99force = False
1010profile = False
11+ line_profile = False
1112
1213if "--skip-cython" in sys .argv :
1314 use_cython = False
2122 profile = True
2223 del sys .argv [sys .argv .index ("--profile" )]
2324
25+ if "--line-profile" in sys .argv :
26+ line_profile = True
27+ del sys .argv [sys .argv .index ("--line-profile" )]
28+
2429source_paths = ['raysect' , 'demos' ]
2530compilation_includes = ["." , numpy .get_include ()]
2631compilation_args = []
3035}
3136setup_path = path .dirname (path .abspath (__file__ ))
3237
38+ if line_profile :
39+ compilation_args .append ("-DCYTHON_TRACE=1" )
40+ compilation_args .append ("-DCYTHON_TRACE_NOGIL=1" )
41+ cython_directives ["linetrace" ] = True
42+
3343if use_cython :
3444
3545 from Cython .Build import cythonize
You can’t perform that action at this time.
0 commit comments