Skip to content

Package pages: lead with the install error people search for - #306

Merged
patrickballard merged 2 commits into
mainfrom
failed-building-wheel-pages
Dec 4, 2026
Merged

patrickballard merged 2 commits into
mainfrom
failed-building-wheel-pages

Conversation

@patrickballard

Copy link
Copy Markdown
Contributor

The 5,000 package pages are titled "NAME wheel coverage", which nobody types into a search box. People search the error they got, and so do their coding agents when an install fails: "Failed building wheel for psycopg2".

For a package that builds from source on some platform (686 pages in the 3 Dec scan), the page is now titled Failed building wheel for NAME? Where pip builds it from source, and the fix, with a short answer above the table:

  • why pip builds it (no wheel fits, so it downloads the source and builds, which needs a compiler and libraries),
  • where it does for this package,
  • the ways out (a Python/platform with a wheel, a release with one, or give the build what it needs),
  • pip install -r requirements.txt 2>&1 | uvx wheelgap --from-log - -p 3.14 -t PLATFORM, which finds which dependency failed.

A package with no wheel and no sdist on some platform (172 pages) gets No matching distribution found for NAME? and a uvx wheelgap requirements.txt command instead, since --from-log reads build failures. Fully covered packages keep the current title. Pyodide gaps don't count toward the choice.

Checked: built all 4,999 pages from data/coverage.json and looked at the psycopg2 page in the browser; it uses the existing section.notes style, so it matches the rest of the page. Tests: 876 passed, plus a new one for the three cases.

After it deploys I'll re-ping IndexNow for the changed pages.

🤖 Generated with Claude Code

A package that builds from source somewhere is titled "Failed building wheel for NAME?" (or "No matching
distribution found for NAME?" where there's no sdist either), with a short answer above the table: why pip
builds it, where it does for this package, the ways out, and the wheelgap command that finds which dependency
failed in a whole install. Fully covered packages keep the wheel coverage title. Pyodide gaps don't count,
since nobody's pip builds there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The command used the first platform with a gap on any Python, with the summary's Python, so 252 pages named a
pair that has a wheel. Pick the Python first (the summary's when it has the error, else the newest that does),
then its first platform with that error. Free-threaded-only gaps keep the coverage title, since the summary
under the heading is about regular Python. The no-sdist wording says an unpinned install falls back to an older
release. Tests for each, and for escaping a name in the new section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@patrickballard

Copy link
Copy Markdown
Contributor Author

Second review found that the example command on 252 pages named a Python and platform that has a wheel, that free-threaded-only gaps got the error title, and that the no-sdist sentence ignored pip falling back to an older release. All three are fixed in the latest commit, with tests. Checked against the 3 Dec scan: 607 build-failure and 169 no-distribution pages now, and on every one the command's Python and platform has exactly that page's error.

@patrickballard
patrickballard merged commit c7e47ee into main Dec 4, 2026
1 check passed
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