Cython setup updated

This commit is contained in:
2025-02-04 15:23:01 -06:00
parent 96bab38941
commit 77fbf16828
2 changed files with 26 additions and 0 deletions

12
main.py Normal file
View File

@@ -0,0 +1,12 @@
# Importa la clase QRDetector desde el archivo qr_detector.py
from qr_detector import QRDetector
def main():
# Crear una instancia del detector de QR
detector = QRDetector(config_path='src/config.yaml')
# Llamar al método run para iniciar el proceso
detector.run()
if __name__ == "__main__":
main()

14
setup.py Normal file
View File

@@ -0,0 +1,14 @@
from distutils.core import setup, Extension
from Cython.Build import cythonize
setup(
ext_modules = cythonize([
"src/qr_detector.py",
"src/db_handler.py",
"src/webhook_handler.py"
], compiler_directives={
'language_level': "3",
'boundscheck': False,
'wraparound': False
})
)