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-02-28 11:11:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-02-28 11:11:26 +0800
Commit
8d7455a978d5743acb47225aa668cc28a5fcb1b0
8d7455a9
1 parent
343e732c
Fix building pre-compiled wheels (#68)
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
1 行删除
.github/workflows/build-wheels.yaml
cmake/cmake_extension.py
.github/workflows/build-wheels.yaml
查看文件 @
8d7455a
...
...
@@ -32,7 +32,7 @@ jobs:
uses
:
pypa/cibuildwheel@v2.11.4
env
:
CIBW_BEFORE_BUILD
:
"
pip
install
-U
cmake
numpy"
CIBW_SKIP
:
"
cp27-*
cp35-*
*-win32
pp*
*-musllinux*
*-manylinux_i686"
CIBW_SKIP
:
"
cp27-*
cp35-*
cp36-*
*-win32
pp*
*-musllinux*
*-manylinux_i686"
CIBW_BUILD_VERBOSITY
:
3
-
name
:
Display wheels
...
...
cmake/cmake_extension.py
查看文件 @
8d7455a
...
...
@@ -40,6 +40,7 @@ try:
# -linux_x86_64.whl
self
.
root_is_pure
=
False
except
ImportError
:
bdist_wheel
=
None
...
...
@@ -74,7 +75,11 @@ class BuildExtension(build_ext):
extra_cmake_args
+=
" -DBUILD_SHARED_LIBS=ON "
else
:
extra_cmake_args
+=
" -DBUILD_SHARED_LIBS=OFF "
extra_cmake_args
+=
" -DSHERPA_ONNX_ENABLE_CHECK=OFF "
extra_cmake_args
+=
" -DSHERPA_ONNX_ENABLE_PYTHON=ON "
extra_cmake_args
+=
" -DSHERPA_ONNX_ENABLE_PORTAUDIO=OFF "
extra_cmake_args
+=
" -DSHERPA_ONNX_ENABLE_C_API=OFF "
extra_cmake_args
+=
" -DSHERPA_ONNX_ENABLE_WEBSOCKET=OFF "
if
"PYTHON_EXECUTABLE"
not
in
cmake_args
:
print
(
f
"Setting PYTHON_EXECUTABLE to {sys.executable}"
)
...
...
请
注册
或
登录
后发表评论