diff --git a/setup.py b/setup.py index af79677..0473ab5 100644 --- a/setup.py +++ b/setup.py @@ -7,18 +7,17 @@ with open("README.md", "r", encoding="utf-8") as fh: # Build install_requires based on platform def build_install_requires(): py_version = platform.python_version()[0:3].replace('.', "") - print(py_version, platform.system(), platform.machine()) if platform.system() == "Linux" and platform.machine() == "x86_64": install_requires=[ 'onnxruntime>=1.10.0,<2', f"speexdsp_ns @ https://github.com/dscripka/openWakeWord/releases/download/v0.1.1/speexdsp_ns-0.1.2-cp{py_version}-cp{py_version}-linux_x86_64.whl", ] - if platform.system() == "Linux" and platform.machine() == "aarch64": + elif platform.system() == "Linux" and platform.machine() == "aarch64": install_requires=[ 'onnxruntime>=1.10.0,<2', f"speexdsp_ns @ https://github.com/dscripka/openWakeWord/releases/download/v0.1.1/speexdsp_ns-0.1.2-cp{py_version}-cp{py_version}-linux_aarch64.whl", ], - if platform.system() == "Windows" and platform.machine() == "x86_64": + elif platform.system() == "Windows" and platform.machine() == "x86_64": install_requires=[ 'onnxruntime>=1.10.0,<2', ]