Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>wheelgap: find Python dependencies with no prebuilt wheel</title>
<meta name="description" content="wheelgap finds the Python dependencies that have no prebuilt wheel for your platform (ARM, Alpine, Windows on ARM, Python 3.15, free-threaded 3.14t) before your Docker build fails, and gives the upgrade that fixes each one.">
<title>wheelgap: stop Python dependencies building from source when you install them</title>
<meta name="description" content="wheelgap finds the Python dependencies that have no prebuilt wheel for your platform (ARM, Alpine, Windows on ARM, Python 3.15, free-threaded 3.14t), so they would build from source and run their own build code when you install them. It prints the uv or pip settings that refuse every other build, and the upgrade that fixes each gap.">
<meta name="google-site-verification" content="pTqq7n3WPYEB9SM6VmMymbLhWYs6GJL2Csr1tqxHBRg">
<link rel="canonical" href="https://wheelgap.github.io/">
<meta property="og:title" content="wheelgap">
<meta property="og:description" content="Find the Python dependencies with no prebuilt wheel for your platform, before your build does.">
<meta property="og:description" content="Stop your Python dependencies from running their own build code when you install them.">
<meta property="og:url" content="https://wheelgap.github.io/">
<meta property="og:image" content="https://raw.githubusercontent.com/wheelgap/wheelgap/main/docs/social-preview.png">
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"wheelgap","applicationCategory":"DeveloperApplication","operatingSystem":"Linux, macOS, Windows","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"Finds the Python dependencies that have no prebuilt wheel for a target platform, before the build does, and gives the upgrade that fixes each one.","url":"https://wheelgap.github.io/","codeRepository":"https://github.com/wheelgap/wheelgap","license":"https://opensource.org/licenses/MIT"}
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"wheelgap","applicationCategory":"DeveloperApplication","operatingSystem":"Linux, macOS, Windows","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"Finds the Python dependencies that have no prebuilt wheel for a target platform, so they build from source at install, prints the uv or pip settings that refuse every other build, and gives the upgrade that fixes each gap.","url":"https://wheelgap.github.io/","codeRepository":"https://github.com/wheelgap/wheelgap","license":"https://opensource.org/licenses/MIT"}
</script>
<link rel="stylesheet" href="/brand.css?v=e093748145">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
Expand Down Expand Up @@ -69,8 +69,8 @@
</div>
</header>
<main id="page_content">
<h1>Find the Python dependencies with no prebuilt wheel for your platform, before your build does</h1>
<p class="lede">Switching to an ARM image, Alpine, Windows on ARM, Python 3.15 or free-threaded 3.14t, and seeing <code>Failed building wheel</code>? wheelgap reads your lockfile and lists every package pip or uv would have to compile from source, or can't install at all, on the platforms you ship to. With <code>--fix</code> it gives the upgrade that has the wheel and the command to run.</p>
<h1>Stop your Python dependencies from running their own build code when you install them</h1>
<p class="lede">When a package has no prebuilt wheel for your platform, pip and uv build it from source, and that runs the package's own build code on your machine. wheelgap reads your lockfile and lists every package that would build, or can't install at all, on the platforms you ship to (ARM, Alpine, Windows on ARM, Python 3.15, free-threaded 3.14t). <code>wheelgap lockdown</code> then prints the uv or pip settings that refuse every build except the ones you can't avoid yet, and <code>--fix</code> gives the upgrade that has the wheel.</p>
<form class="repo-box" action="/tracker/check/" method="get">
<label for="repo"><a href="https://wheelgap.github.io/tracker/check/">Repo checker</a><span>: paste a public GitHub repository and see its gaps in the browser.</span></label>
<div class="repo-row">
Expand All @@ -79,7 +79,8 @@ <h1>Find the Python dependencies with no prebuilt wheel for your platform, befor
</div>
</form>
<p>Or in a terminal, on your lockfile:</p>
<pre><code>uvx wheelgap -p 3.13 -t linux-aarch64,musl-aarch64 --fix</code></pre>
<pre><code>uvx wheelgap@latest lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64</code></pre>
<p>On pydantic-ai's lockfile (433 packages), on Python 3.13 across Linux x86_64 and ARM64, macOS ARM and Windows x64, only 2 need to build; the settings refuse every other build.</p>
<p>Free and open source (MIT). No account, nothing to install permanently.</p>

<h2>Projects</h2>
Expand All @@ -102,6 +103,7 @@ <h3 id="card-wheels"><a href="https://wheelgap.github.io/wheels/">Gap wheel inde

<h2>Reading</h2>
<ul>
<li><a href="https://wheelgap.github.io/tracker/platforms/install-builds/">Which of PyPI's top 5,000 packages build from source when you install them</a>, by platform, updated nightly.</li>
<li><a href="https://wheelgap.github.io/wheelgap/reports/python-3-15/">What breaks when you install real Python projects on 3.15 (and 3.15t)</a></li>
<li><a href="https://wheelgap.github.io/wheelgap/case-studies/">Case studies</a>: what wheelgap found in FastAPI, pydantic, Poetry, Streamlit, dlt and other projects.</li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The README and docs on `main` can describe changes that aren't on PyPI yet; `CHA
- [Usage](https://github.com/wheelgap/wheelgap#usage): examples, `[tool.wheelgap]` config, result statuses, `--explain`, how `--json` results are keyed, exit codes, `--ignore`
- [Targets](https://github.com/wheelgap/wheelgap#targets): platform names and aliases, the wheel tags each accepts, `--glibc`, `--musl`, `--distro`
- [Fixing a gap](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--fix-fix): `--fix` gives each gap's way out, the upgrade to an official release that has the wheel first (with `uv lock --upgrade-package NAME` or the new pin), else an unofficial wheel from wheelgap's gap wheel index; `--json` adds each package's `fix` and a top-level `fix_summary`, and the gap wheels need the user's go-ahead before the index goes into project files; for other lockfiles the output only says to add the index where the lock is made and relock (a pdm.lock, or a poetry.lock package that records no index, gets no gap wheel), and the index isn't for a project that installs from a private index; `--json` lists the filled cells in `gap_wheels`, and `--fix --print-gap-wheel-snippet` prints just the lines for one uv.lock, requirements file or package names
- [Refusing source builds](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--lockdown-lockdown): `wheelgap lockdown uv.lock -p 3.13 -t linux-x86_64,linux-aarch64` (or a requirements file) lists the packages that build from source at install on those targets and prints the settings that refuse every other build: uv's `no-build = true` and a `no-binary-package` list, or pip's `--only-binary :all:` and `--no-binary` lines; with the settings in, `--fail-on missing` in CI fails a change that adds a new build
- [Checking a Docker image](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--dockerfile-dockerfile): `--dockerfile` takes the Python and platform from a Dockerfile's final stage; [`--dockerfile-inputs`](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--dockerfile-inputs-dockerfile-inputs) also checks the requirements files it installs with `RUN pip install -r FILE`
- [Diagnosing a failed install](https://github.com/wheelgap/wheelgap/blob/main/docs/cli.md#--from-log-from-log): `--from-log install.log` finds the packages a pip, uv, Poetry or PDM install failed to build and the release with a wheel; a [pip installation report](https://github.com/wheelgap/wheelgap/blob/main/docs/inputs.md#pip-installation-report) (`pip install --dry-run --report`) is read as an input too
- [Comparing two lockfiles](https://github.com/wheelgap/wheelgap#comparing-two-lockfiles): `wheelgap diff OLD NEW`, git refs such as `origin/main:uv.lock`, `--json`
Expand Down