Skip to content

baml-py: Add version 0.226.1 - #2175

Merged
luhenry merged 2 commits into
mainfrom
baml-py
Sep 21, 2026
Merged

luhenry merged 2 commits into
mainfrom
baml-py

Conversation

@luhenry

@luhenry luhenry commented Sep 21, 2026

Copy link
Copy Markdown
Member

Compiles BAML's Rust runtime, compiler and CLI into the baml_py pyo3 extension module. Upstream publishes no riscv64 wheel.

Mirrors upstream's build-python-release.reusable.yaml.

Differs from upstream

  • Release profile relaxed to thin LTO, 16 codegen units - fat LTO over this workspace exceeds the riscv64 runners.
  • Built on cp312, not cp38 - the manylinux riscv64 image ships no cp38.
  • yum update and the openssl packages dropped - no riscv64 crate in the graph links openssl.

Matrix: one cp38-abi3 wheel, as upstream - pyo3 carries abi3-py38 unconditionally.

Testing

  • Upstream's integ-tests all call live LLM providers, so the wheel is exercised through the baml-cli it ships: init a project, check and generate its pydantic client, then import that client back through the runtime.

License: OK

Built on cp312.

Build the riscv64 wheel for BoundaryML's BAML Python runtime from the
upstream Cargo workspace, mirroring the Linux legs of
build-python-release.reusable.yaml.

baml-py publishes no sdist, so the wheel is built from the git tag with
PyO3/maturin-action, out of engine/ the way upstream does so cargo picks
up engine/.cargo/config.toml. pyo3 carries abi3-py38 unconditionally, so
one cp38-abi3 wheel covers every interpreter, matching the single Linux
wheel upstream ships per architecture.

The release profile's fat LTO and unlimited codegen units are overridden
through CARGO_PROFILE_RELEASE_* for the 4-core riscv64 runners.
luhenry added a commit that referenced this pull request Sep 21, 2026
@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-21 20:56 UTC

Pulls in the pr-checks.yml 'edited' trigger fix so this PR's stale
check_commit_messages result (from before the PR body's AI-attribution
footer was stripped) can be re-evaluated against the current, clean body.
@luhenry
luhenry marked this pull request as ready for review September 21, 2026 20:41
@luhenry
luhenry merged commit 773d55a into main Sep 21, 2026
9 checks passed
@luhenry
luhenry deleted the baml-py branch September 21, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant