from setuptools import setup, Extension from Cython.Build import cythonize _ext_modules = [ Extension("cc_ocr.common.imutils", ["cc_ocr_src/common/imutils.py"]), Extension("cc_ocr.common.inferencer", ["cc_ocr_src/common/inferencer.py"]), Extension("cc_ocr.processing.classifier", ["cc_ocr_src/processing/classifier.py"]), Extension("cc_ocr.processing.craft", ["cc_ocr_src/processing/craft.py"]), Extension("cc_ocr.predict_wrapper", ["cc_ocr_src/predict_wrapper.py"]), ] if __name__ == "__main__": setup(ext_modules=cythonize(_ext_modules, cache=False))