setup.py
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import platform
from setuptools import setup
def is_windows():
return platform.system() == "Windows"
def get_binaries():
if not is_windows():
return None
libs = [
"onnxruntime.dll",
"sherpa-onnx-c-api.dll",
"sherpa-onnx-cxx-api.dll",
"sherpa-onnx-c-api.lib",
"sherpa-onnx-cxx-api.lib",
]
prefix = "./sherpa_onnx/lib"
return [f"{prefix}/{lib}" for lib in libs]
setup(
name="sherpa-onnx-core",
version="1.12.13",
description="Core shared libraries for sherpa-onnx",
packages=["sherpa_onnx"],
include_package_data=True,
data_files=[("Scripts", get_binaries())] if get_binaries() else None,
author="The sherpa-onnx development team",
url="https://github.com/k2-fsa/sherpa-onnx",
author_email="dpovey@gmail.com",
zip_safe=False,
license="Apache-2.0",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)