Commit 6faa814
Build sdist in split-package mode so its metadata matches the wheels (k2-fsa#3690)
The published wheels are built with SHERPA_ONNX_SPLIT_PYTHON_PACKAGE=ON,
so their metadata declares `sherpa-onnx-core==<version>`. The sdist, however,
is built without that variable, so `need_split_package()` returns False and
`install_requires` becomes None -- the sdist's Requires-Dist omits
sherpa-onnx-core entirely.
Tools that resolve dependencies from sdist metadata (notably `uv lock`)
therefore produce a lockfile without sherpa-onnx-core. After `uv sync`,
only sherpa-onnx is installed and `import sherpa_onnx` fails with a missing
libonnxruntime dylib, even though a direct `uv pip install` works.
Setting SHERPA_ONNX_SPLIT_PYTHON_PACKAGE=ON for the sdist build makes the
sdist's metadata declare the same core dependency as the wheels.
Fixes k2-fsa#3689
Co-authored-by: Eridanus117 <eridani117@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent feb870c commit 6faa814
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
| |||
0 commit comments