From 1841e7e8d9ca4c9f658f5ad58882df2ca43e74df Mon Sep 17 00:00:00 2001 From: dscripka Date: Tue, 17 Jan 2023 18:51:10 -0500 Subject: [PATCH] adjusted setup.py, last fix --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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', ]