We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51bc12 commit 16496b9Copy full SHA for 16496b9
setup.py
@@ -392,7 +392,13 @@ def get_cython_extension() -> list[Extension]:
392
compiler_directives = {"language_level": "3"}
393
394
if config.profiling:
395
- define_macros += [("CYTHON_TRACE", "1"), ("CYTHON_TRACE_NOGIL", "1")]
+ define_macros += [
396
+ ("CYTHON_TRACE", "1"),
397
+ ("CYTHON_TRACE_NOGIL", "1"),
398
+ # Disable sys.monitoring for Python 3.13+ to enable coverage.py support
399
+ # coverage.py doesn't support sys.monitoring yet (Cython 3.1+ issue)
400
+ ("CYTHON_USE_SYS_MONITORING", "0"),
401
+ ]
402
compiler_directives.update(linetrace="true")
403
404
include_dirs: list[str] = []
0 commit comments