Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2023-10-14 23:14:45 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-10-14 23:14:45 +0800
Commit
0df0a735d7e22f30f55d771f9201c6dcbbc10d02
0df0a735
1 parent
655e0fa8
Fix building wheels for windows (#365)
隐藏空白字符变更
内嵌
并排对比
正在显示
6 个修改的文件
包含
10 行增加
和
6 行删除
.github/workflows/build-wheels-aarch64.yaml
.github/workflows/build-wheels-macos.yaml
.github/workflows/build-wheels-win32.yaml
.github/workflows/build-wheels.yaml
cmake/cmake_extension.py
setup.py
.github/workflows/build-wheels-aarch64.yaml
查看文件 @
0df0a73
...
...
@@ -6,6 +6,7 @@ on:
-
wheel
tags
:
-
'
*'
workflow_dispatch
:
env
:
SHERPA_ONNX_IS_IN_GITHUB_ACTIONS
:
1
...
...
.github/workflows/build-wheels-macos.yaml
查看文件 @
0df0a73
...
...
@@ -6,6 +6,7 @@ on:
-
wheel
tags
:
-
'
*'
workflow_dispatch
:
env
:
SHERPA_ONNX_IS_IN_GITHUB_ACTIONS
:
1
...
...
.github/workflows/build-wheels-win32.yaml
查看文件 @
0df0a73
...
...
@@ -6,6 +6,7 @@ on:
-
wheel
tags
:
-
'
*'
workflow_dispatch
:
env
:
SHERPA_ONNX_IS_IN_GITHUB_ACTIONS
:
1
...
...
.github/workflows/build-wheels.yaml
查看文件 @
0df0a73
...
...
@@ -6,6 +6,7 @@ on:
-
wheel
tags
:
-
'
*'
workflow_dispatch
:
env
:
SHERPA_ONNX_IS_IN_GITHUB_ACTIONS
:
1
...
...
cmake/cmake_extension.py
查看文件 @
0df0a73
...
...
@@ -146,11 +146,11 @@ class BuildExtension(build_ext):
binaries
+=
[
"sherpa-onnx-portaudio.dll"
]
binaries
+=
[
"onnxruntime.dll"
]
binaries
+=
[
"kaldi-decoder-core.dll"
]
binaries
+=
[
"sherpa-onnx-fst.dll"
]
binaries
+=
[
"sherpa-onnx-kaldifst-core.dll"
]
binaries
+=
[
"sherpa-onnx-fst.lib"
]
binaries
+=
[
"sherpa-onnx-kaldifst-core.lib"
]
for
f
in
binaries
:
suffix
=
""
if
"dll"
in
f
else
suffix
suffix
=
""
if
(
".dll"
in
f
or
".lib"
in
f
)
else
suffix
src_file
=
install_dir
/
"bin"
/
(
f
+
suffix
)
if
not
src_file
.
is_file
():
src_file
=
install_dir
/
"lib"
/
(
f
+
suffix
)
...
...
setup.py
查看文件 @
0df0a73
...
...
@@ -65,12 +65,12 @@ def get_binaries_to_install():
binaries
+=
[
"sherpa-onnx-portaudio.dll"
]
binaries
+=
[
"onnxruntime.dll"
]
binaries
+=
[
"kaldi-decoder-core.dll"
]
binaries
+=
[
"sherpa-onnx-fst.dll"
]
binaries
+=
[
"sherpa-onnx-kaldifst-core.dll"
]
binaries
+=
[
"sherpa-onnx-fst.lib"
]
binaries
+=
[
"sherpa-onnx-kaldifst-core.lib"
]
exe
=
[]
for
f
in
binaries
:
suffix
=
""
if
"dll"
in
f
else
suffix
suffix
=
""
if
(
".dll"
in
f
or
".lib"
in
f
)
else
suffix
t
=
bin_dir
/
(
f
+
suffix
)
exe
.
append
(
str
(
t
))
return
exe
...
...
请
注册
或
登录
后发表评论