MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _generate_cython_module

Function _generate_cython_module

build_tools/generate_code.py:242–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240
241
242def _generate_cython_module():
243 print("Removing pydevd_cython.pyx")
244 remove_if_exists(os.path.join(root_dir, "_pydevd_bundle", "pydevd_cython.pyx"))
245
246 target = os.path.join(root_dir, "_pydevd_bundle", "pydevd_cython.pyx")
247 curr = os.environ.get("PYDEVD_USE_CYTHON")
248 try:
249 os.environ["PYDEVD_USE_CYTHON"] = "NO"
250
251 from _pydevd_bundle import pydevd_additional_thread_info_regular
252 from _pydevd_bundle import pydevd_frame, pydevd_trace_dispatch_regular
253
254 _generate_cython_from_files(target, [pydevd_additional_thread_info_regular, pydevd_frame, pydevd_trace_dispatch_regular])
255 finally:
256 if curr is None:
257 del os.environ["PYDEVD_USE_CYTHON"]
258 else:
259 os.environ["PYDEVD_USE_CYTHON"] = curr
260
261
262def _generate_sys_monitoring_cython_module():

Callers 1

generate_cython_moduleFunction · 0.85

Calls 4

remove_if_existsFunction · 0.85
joinMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected