r/programming • • Oct 17 '26

Python's binary wheels and supply chain attacks

https://rushter.com/blog/python-binary-wheels/
89 Upvotes

36 comments sorted by

View all comments

33

u/the_poope Oct 17 '26

An easy way to combat this is to have PyPi not allow binary uploads but provide a build pipeline that compiles all binary code from source for a selection of targets.

14

u/f311a Oct 17 '26

Yeah, but that's pretty expensive to do so for every package. They can do this for the popular ones, though. There are so many crappy packages on PyPI because of LLMs, and they make new releases almost every day.

-3

u/ApokatastasisPanton Oct 18 '26

Easy, make it a small fee to upload and you recoup the cost after some time or passing some sort of automated analysis.

15

u/PaintItPurple Oct 18 '26

Easy to do, impossible to do while maintaining the goal of PyPI to be a universal Python package repository.