Fix pip install on Windows for Python 3.11 (#271)

This commit is contained in:
Fangjun Kuang
2023-08-14 22:22:46 +08:00
committed by GitHub
parent 313debe45c
commit 496c5dd7f5
3 changed files with 4 additions and 2 deletions

View File

@@ -145,6 +145,7 @@ jobs:
cp -a build/install/lib $dst/
cp -a build/install/include $dst/
brew install tree
tree $dst
tar cjvf ${dst}.tar.bz2 $dst

View File

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(sherpa-onnx)
set(SHERPA_ONNX_VERSION "1.7.5")
set(SHERPA_ONNX_VERSION "1.7.6")
# Disable warning about
#

View File

@@ -37,7 +37,8 @@ with open("sherpa-onnx/python/sherpa_onnx/__init__.py", "a") as f:
install_requires = [
"numpy",
"sentencepiece==0.1.96",
"sentencepiece==0.1.96; python_version < '3.11'",
"sentencepiece; python_version >= '3.11'",
]