adjusted setup.py, last fix

This commit is contained in:
dscripka 2023-01-17 18:51:10 -05:00
parent 173f5aa11a
commit 1841e7e8d9

View file

@ -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',
]