Committed by
GitHub
Fix pip install on Windows for Python 3.11 (#271)
正在显示
3 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -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 |
| @@ -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 |
-
请 注册 或 登录 后发表评论