()
| 240 | |
| 241 | |
| 242 | def _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 | |
| 262 | def _generate_sys_monitoring_cython_module(): |
no test coverage detected