Fangjun Kuang
Committed by GitHub

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

@@ -145,6 +145,7 @@ jobs: @@ -145,6 +145,7 @@ jobs:
145 cp -a build/install/lib $dst/ 145 cp -a build/install/lib $dst/
146 cp -a build/install/include $dst/ 146 cp -a build/install/include $dst/
147 147
  148 + brew install tree
148 tree $dst 149 tree $dst
149 150
150 tar cjvf ${dst}.tar.bz2 $dst 151 tar cjvf ${dst}.tar.bz2 $dst
1 cmake_minimum_required(VERSION 3.13 FATAL_ERROR) 1 cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
2 project(sherpa-onnx) 2 project(sherpa-onnx)
3 3
4 -set(SHERPA_ONNX_VERSION "1.7.5") 4 +set(SHERPA_ONNX_VERSION "1.7.6")
5 5
6 # Disable warning about 6 # Disable warning about
7 # 7 #
@@ -37,7 +37,8 @@ with open("sherpa-onnx/python/sherpa_onnx/__init__.py", "a") as f: @@ -37,7 +37,8 @@ with open("sherpa-onnx/python/sherpa_onnx/__init__.py", "a") as f:
37 37
38 install_requires = [ 38 install_requires = [
39 "numpy", 39 "numpy",
40 - "sentencepiece==0.1.96", 40 + "sentencepiece==0.1.96; python_version < '3.11'",
  41 + "sentencepiece; python_version >= '3.11'",
41 ] 42 ]
42 43
43 44