Repository navigation
fix(native): fall back to prebuilt wheels when a dependency fails to build - #81
Merged
Merged
Conversation
…build Native installs resolve LangBot's dependencies fresh, so a dependency release that drops the wheel for a platform turns into a source build that needs Rust or a C compiler: bcrypt 5.1.0 (2026-12-01) and cryptography >=49 have no Intel macOS wheels, tiktoken 0.14 / cbor2 6.x need glibc 2.28. When uv reports a failed source build, retry with that package restricted to wheels (--only-binary) so uv picks an older compatible release. If no release has a wheel either, report the build failure with guidance (install build tools or use --driver docker) instead of the resolver error, and do not repeat the build on fallback indexes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
…r wheel gap Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Native installs run
uv pip install langbot==Xand resolve every dependency fresh. When a dependency's newest release drops the wheel for the user's platform, uv falls back to the sdist and the build fails without Rust or a C compiler. Telemetry from LANG-836 (2026-12-03, v0.6.8) shows two cases:Change
--only-binary <pkg>), so uv picks an older release in Core's allowed range. This is capped at 8 packages.Failed to buildheader out of the 2 KiB output tail lbctl keeps. In that case lbctl falls back to the closinghelp: `pkg` (vX) was included becauseline, and only when the tail also shows a build-backend or build-environment failure.--driver docker. Before, the user got uv's resolver error, and the same doomed build was retried on fallback indexes. This hint only appears when the final failure is itself a build or wheel gap. Any other failure (for example a mirror 502) still falls back to the next index, keeping the wheel restriction.Verification
go test ./...passes. Theinternal/configthread test is a known flake (LANG-551) and passed on rerun.ubuntu:18.04container, run with--region global --pypi-index https://pypi.org/simple:install_packageon tiktoken 0.14.0. This branch falls back four times (tiktoken, asyncpg, pyqwest, litellm), installs 241 packages, passes the health check and exits 0.cbor2 has no prebuilt wheel for this system … use --driver docker.🤖 Generated with Claude Code