Cython setup updated
This commit is contained in:
12
main.py
Normal file
12
main.py
Normal 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
14
setup.py
Normal 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
|
||||||
|
})
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user