generated from dopt-python/py311
29 lines
613 B
Python
29 lines
613 B
Python
import os
|
|
|
|
from Cython.Build import cythonize
|
|
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"],
|
|
compiler_directives={
|
|
"language_level": 3,
|
|
"embedsignature": False,
|
|
"annotation_typing": True,
|
|
"linetrace": True,
|
|
},
|
|
)
|
|
|
|
|
|
DEBUG = bool(os.getenv("DOPT_DEBUG", None))
|
|
|
|
if DEBUG:
|
|
ext_modules[0].define_macros.append(("CYTHON_TRACE", "1"))
|
|
|
|
setup(ext_modules=ext_modules)
|