Repository navigation
Package pages: lead with the install error people search for - #306
Merged
Merged
Conversation
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>
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.txtcommand instead, since--from-logreads 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.jsonand looked at the psycopg2 page in the browser; it uses the existingsection.notesstyle, 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