Skip to content
wheelgap

Refusing install-time builds on popular Python projects

A source build runs a package's own build code on your machine while it installs. uv's no-build and pip's --only-binary refuse it, but hardly anyone turns them on, because they can't tell what would break. Here is what it takes for 8 well-known projects, from their committed uv.lock: 6 can refuse every other build today, 6 of them with at most 2 packages allowed to build.

From the nightly check of 2026-12-04, with wheelgap 0.17.0, for Python 3.13 on Linux x86_64, Linux ARM64, macOS Apple silicon and Windows x86_64.

The projects

Must build from source is the allowlist: packages with no wheel for a target, which uv builds there. Complete means no-build = true plus that list covers every package the lockfile installs. A split package has a wheel on some targets and builds on others, so it can't be listed without building everywhere; the way out wheelgap gives is shown for each.

Each project's locked packages and the ones that must build from source
ProjectLocked packagesMust build from sourceStatus
fastapi/fastapi1661: jiebaComplete
browser-use/browser-use850Complete
crewAIInc/crewAI4928: antlr4-python3-runtime, ibm-cos-sdk, ibm-cos-sdk-core, ibm-cos-sdk-s3transfer, langdetect, openai-whisper, pylatexenc, pysherNot complete. Split: snowflake-connector-python builds on macOS Apple silicon: upgrade to 4.8.1. stagehand builds on Linux ARM64: upgrade to 4.0.0
openai/openai-agents-python2041: evdev (Linux x86_64, Linux ARM64 only)Complete
pydantic/pydantic1582: mkdocs-exclude, pydantic-docs (git)Complete
modelcontextprotocol/python-sdk1152: forbiddenfruit, strict-no-cover (git)Complete
prefecthq/prefect3523: dbt-core-experimental-parser, python-cli-bench (git), testslideNot complete. Split: pyre-check builds on Linux ARM64, macOS Apple silicon and Windows x86_64: no fix (no newer release has a wheel there) for Linux ARM64 and Windows x86_64; upgrade to 0.10.0 for macOS Apple silicon
pydantic/pydantic-ai4382: forbiddenfruit, strict-no-cover (git)Complete

On 3 Dec 2026, that day's answers were checked against uv itself (uv pip install --dry-run --no-build on Linux x86_64, Linux ARM64, macOS Apple silicon and Windows x86_64): no disagreements. The nightly run doesn't repeat this check.

Each project's settings

What wheelgap lockdown prints for each lockfile: the lines to add, naming only the packages that must still build.

fastapi/fastapi

Its uv.lock at 8e36534 (master), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true
no-binary-package = ["jieba"]

With these, uv builds only the packages listed and refuses every other build.

browser-use/browser-use

Its uv.lock at f109c38 (main), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true

With these, uv builds only the packages listed and refuses every other build.

crewAIInc/crewAI

Its uv.lock at 048ed2d (main), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true
no-binary-package = ["antlr4-python3-runtime", "ibm-cos-sdk", "ibm-cos-sdk-core", "ibm-cos-sdk-s3transfer", "langdetect", "openai-whisper", "pylatexenc", "pysher"]

Not covered yet: uv never gives a listed package a wheel, so a package with a wheel on some targets and a build on others can't be listed.

  • snowflake-connector-python 4.8.0 has a wheel on Linux x86_64, Linux ARM64 and Windows x86_64 but builds from source on macOS Apple silicon. Listing it would make it build everywhere, so it isn't listed: upgrade to 4.8.1. In the project folder, run uv lock --upgrade-package snowflake-connector-python, then uv sync: uv moves each to the newest release your constraints allow, so check that it's at least snowflake-connector-python==4.8.1, then run wheelgap again.
  • stagehand 3.21.0 has a wheel on Linux x86_64, macOS Apple silicon and Windows x86_64 but builds from source on Linux ARM64. Listing it would make it build everywhere, so it isn't listed: upgrade to 4.0.0. In the project folder, run uv lock --upgrade-package stagehand, then uv sync: uv moves each to the newest release your constraints allow, so check that it's at least stagehand==4.0.0, then run wheelgap again.

openai/openai-agents-python

Its uv.lock at 050b5b2 (main), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true
no-binary-package = ["evdev"]

With these, uv builds only the packages listed and refuses every other build.

pydantic/pydantic

Its uv.lock at 10737ee (main), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true
no-binary-package = ["mkdocs-exclude", "pydantic-docs"]

With these, uv builds only the packages listed and refuses every other build.

modelcontextprotocol/python-sdk

Its uv.lock at 77001c9 (main), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true
no-binary-package = ["forbiddenfruit", "strict-no-cover"]

With these, uv builds only the packages listed and refuses every other build.

prefecthq/prefect

Its uv.lock at 42dc774 (main), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true
no-binary-package = ["dbt-core-experimental-parser", "python-cli-bench", "testslide"]

Not covered yet: uv never gives a listed package a wheel, so a package with a wheel on some targets and a build on others can't be listed.

  • pyre-check 0.9.23 has a wheel on Linux x86_64 but builds from source on Linux ARM64, macOS Apple silicon and Windows x86_64. Listing it would make it build everywhere, so it isn't listed: no fix (no newer release has a wheel there) for Linux ARM64 and Windows x86_64; upgrade to 0.10.0 for macOS Apple silicon. In the project folder, run uv lock --upgrade-package pyre-check, then uv sync: uv moves each to the newest release your constraints allow, so check that it's at least pyre-check==0.10.0, then run wheelgap again.

pydantic/pydantic-ai

Its uv.lock at 29fc1b4 (main), checked 2026-12-04. The settings for pyproject.toml's [tool.uv]:

no-build = true
no-binary-package = ["forbiddenfruit", "strict-no-cover"]

With these, uv builds only the packages listed and refuses every other build.

Run it on your own project

In the folder with your uv.lock (or a requirements file, for pip's --only-binary):

uvx wheelgap@latest lockdown uv.lock

Add -p and -t for the Pythons and platforms you install on. How it works

What this checks

Each night, each project's uv.lock and pyproject.toml at the default branch's latest commit, read by wheelgap lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64,macos-arm64,win-amd64. The lockfiles are only read: no project's code runs. uv builds the project's own workspace members even under no-build, so they aren't counted; a git or path dependency is listed, since uv builds it from its own source.

A wheel-only install stops a package's build code from running during install. It doesn't make a package safe: the code you install still runs when you import it, and a wheel can ship a .pth file that runs when Python starts.

Source data: data/lockdown.json, from the projects in data/lockdown_projects.toml.

Install-time builds of the top packages · Wheel coverage by platform · Search packages