update Cython compiler options and directives

This commit is contained in:
Florian Förster 2025-10-22 10:02:29 +02:00
parent a04ee526d8
commit a7d45ac6c7

View File

@ -3,8 +3,18 @@ from Cython.Compiler import Options
from setuptools import setup
Options.docstrings = False
Options.embed_pos_in_docstring = False
Options.annotate = False
Options.fast_fail = True
ext_modules = cythonize(["src/dopt_sensor_anomalies/detection.py"])
ext_modules = cythonize(
["src/dopt_sensor_anomalies/detection.py"],
compiler_directives={
"language_level": 3,
"embedsignature": False,
"annotation_typing": True,
},
)
setup(ext_modules=ext_modules)