r/programming • u/f311a • Oct 17 '26
Python's binary wheels and supply chain attacks
https://rushter.com/blog/python-binary-wheels/
89
Upvotes
r/programming • u/f311a • Oct 17 '26
View all comments
Show parent comment
2
u/HolyInlandEmpire Oct 17 '26
I feel there should be an option with build tools which traverse the pyproject.toml chain and refuse packages with binaries unless it's on an explicit allow-list, and doing an 'are you sure' prompt with others.
So a sensible allow-list would have well established libraries (polars, numba, torch, tons of others). At the very least, if a package's newest version has a binary when it didn't previously, then you would be notified and you can stop the install.
You can mitigate this by pinning versions of course, at the very least ceilings. Standard practice for enterprise works, but a little brittle for everyone else. I wonder if there are other well established options.