Skip to content

recipe: jiter 0.19.0, and find cargo on new macOS runners - #134

Merged
ndonkoHenri merged 3 commits into
flet-dev:mainfrom
ndonkoHenri:jiter-0.19.0
Nov 13, 2026
Merged

ndonkoHenri merged 3 commits into
flet-dev:mainfrom
ndonkoHenri:jiter-0.19.0

Conversation

@ndonkoHenri

Copy link
Copy Markdown

What

Bumps jiter from 0.15.0 to 0.19.0, and fixes Rust builds on the current macOS runner images.

Why

OpenAI's Python SDK has required jiter>=0.16.0 since 3.4.0, and pypi.flet.dev only has 0.15.0, so mobile builds can't install any recent SDK (#133). PyPI publishes no mobile wheels for jiter.

Fixing that exposed a CI break that hits every maturin recipe on iOS. Since actions/runner-images#14990, the macOS images install cargo with Homebrew's keg-only rustup (/opt/homebrew/opt/rustup/bin) instead of rustup-init (~/.cargo/bin). Forge rebuilds the iOS PATH from a fixed list, so maturin finds no cargo, asks for puccinialin, and the build fails. The change is in the shared install script, so macos-15 has it too; pinning the label wouldn't help.

Changes

  • recipes/jiter/meta.yaml: version 0.19.0, with no other changes.
  • src/forge/cross.py: cross_kwargs appends the directory of the caller's cargo to the rebuilt PATH. It only appends, so setups that already worked resolve the same cargo as before.
  • A catalogue entry for the puccinialin failure.

Validation

  • CI: all 18 wheels built (Python 3.12, 3.13, 3.14 × the three Android and three iOS slices). On device, 2/2 tests passed for every Python on the Android x86_64 emulator and the iOS arm64 simulator.
  • pydantic-core (also maturin) builds and passes on iOS with the PATH fix.
  • Locally, using the CI Python 3.14 wheels: 2/2 on an arm64 emulator at API 34, and at API 24, which lacks getrandom (the extension imports it weakly).
  • armeabi-v7a can't run on Apple Silicon. A static check of the v7a extension found every import resolved by bionic API 24 or libpython3.14.so, apart from the weak getrandom, and 16 KB segment alignment.
  • The issue's own pip download command now resolves openai==3.50.0 together with jiter-0.19.0-1-cp314-cp314-android_24_arm64_v8a.whl.

Consumer notes

Recent OpenAI SDK releases (3.4.0 and later) install in Flet mobile apps again, on Android and iOS, for Python 3.12 to 3.14. This recipe has no README yet, so there is nothing to link.

Refs #133

GitHub's macos-26 image (20261102) installs cargo under Homebrew's keg-only
rustup, /opt/homebrew/opt/rustup/bin, which the rebuilt iOS PATH omits. maturin
then asks for puccinialin and every Rust recipe fails on iOS.
@ndonkoHenri
ndonkoHenri merged commit 607305e into flet-dev:main Nov 13, 2026
12 checks passed
@ndonkoHenri
ndonkoHenri deleted the jiter-0.19.0 branch November 13, 2026 08:12
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