Support CPython 3.15 in livekit-local-inference
Weβre moving our application to CPython 3.15.2. livekit-local-inference==0.2.7 currently prevents that migration: PyPI has CPython 3.10β3.14 wheels, with no source distribution, abi3 wheel or cp315 wheel.
This reproduces on macOS arm64 with standard, GIL-enabled CPython 3.15.2:
uv venv --python 3.15.2 .venv315
uv pip install --python .venv315/bin/python livekit-local-inference==0.2.7
The resolver reports:
livekit-local-inference==0.2.7 has no wheels with a matching Python ABI tag
(e.g., cp315)
Can you publish genuine cp315-cp315 wheels for macOS arm64 and Linux x86_64/aarch64, or provide the source and build recipe needed to produce them? Our Linux target is glibc 2.28 or newer. We need the existing audio v1-mini EOT model and its native inference contract; every Python process must run 3.15.2.
We can run real-audio, recurrent-state, reset, concurrent-instance and malformed-input checks against the existing 0.2.7 engine. The public Silero model covers VAD, but it does not replace the proprietary audio EOT model. Changing that EOT model needs separate quality qualification.
The Agents package also currently declares requires-python = ">=3.10,<3.15". Raising that declaration alone does not supply the missing native engine.
Package files: https://pypi.org/project/livekit-local-inference/0.2.7/#files
We hit the same wall moving a production LiveKit worker (Deepgram STT/TTS, AgentServer,
no local VAD/EOT) to CPython 3.15.2. For the record, here is what we found:
livekit-agents itself runs on 3.15 once its two native companions are optional. With
livekit-blingfire and livekit-local-inference absent and the five eager imports guarded
(tokenize/{__init__,blingfire}, inference/vad, inference/eot/{transports,languages}):
- our 184 LiveKit tests pass on 3.15.2 (1.8.1);
- 249 of the SDK's own tests pass on 3.15.2, the same count as on 3.13 (worker, ipc, drain, aio, Deepgram STT/TTS, cli, stt_base, proc memory);
- every failure left is a test of the local VAD/EOT models themselves.
A small change that makes the two packages optional where they have no wheel (markers
python_version < '3.15', imports guarded, a clear error on use) would unblock every
cloud-inference user now. It would also let #8238/#8251 land on their own schedule.
Happy to open that PR if it's welcome.