From 0b7e8ceeda8391891e27432fc7b242cd5f24d333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 17 Jun 2025 07:18:55 +0200 Subject: [PATCH] Fix tflite-runtime dependency for Python 3.12+ The tflite-runtime package only provides wheels for Python versions up to 3.11. This change restricts the dependency to Python < 3.12 to prevent installation failures on newer Python versions. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index df0a666..a2f37e3 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ def build_additional_requires(): version="0.6.0", install_requires=[ 'onnxruntime>=1.10.0,<2', - 'tflite-runtime>=2.8.0,<3; platform_system == "Linux"', + 'tflite-runtime>=2.8.0,<3; platform_system == "Linux" and python_version < "3.12"', 'tqdm>=4.0,<5.0', 'scipy>=1.3,<2', 'scikit-learn>=1,<2',