r/Python • • 4h ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

8 Upvotes

19 comments sorted by

View all comments

1

u/ManufacturerKey6917 1h ago

I've been working on wheelgap, a tool that checks whether pip or uv will install a prebuilt wheel for each dependency on each platform you ship to, or build it from source.

The new part is wheelgap lockdown. A source build runs the package's own build code at install time, which is Python's version of npm's install scripts. uv and pip can refuse builds (no-build, --only-binary), but hardly anyone turns that on because you can't tell what it breaks. lockdown reads your lockfile and prints the settings that refuse every build except the ones you actually need.

On pydantic-ai's lockfile (433 packages), only 2 need to build across Linux, macOS and Windows on Python 3.13.

Out of PyPI's top 5,000 packages, 237 still build from source on plain Linux with 3.14, 420 on Alpine, 473 on Windows ARM and 542 on free-threaded 3.15: https://wheelgap.github.io/tracker/platforms/install-builds/

uvx wheelgap@latest lockdown uv.lock. Feedback very welcome, especially "this broke my install".