PyTorch and the PyPI supply chain
PyTorch and the PyPI supply chain
Posted Jan 12, 2023 11:44 UTC (Thu) by kleptog (subscriber, #1183)In reply to: PyTorch and the PyPI supply chain by bferrell
Parent article: PyTorch and the PyPI supply chain
No problem, create a patch, send it to the developer, they merge it, push a new minor release to PyPI and you can get on with it. In my experience, a month or two is the usual turnaround time. This fits in the release cycle, we just pause the ticket till the upstream release. Telling us to "use the version shipped by the distribution" is equivalent to saying "work around this bug for the next year or two". And it's not just one bug, it's several over several different packages. Eventually tracking which workarounds you're waiting for an upstream release becomes a significant amount of work.
Besides, workarounds are annoying, this is open source, we should be fixing the upstream packages, not working around the issues elsewhere.
I know projects with the strict rule that all packages must be installed from Debian. And it *almost* works. If the packages are missing features you can simply tell the product owner it's not possible yet. But there are always a few packages for which the Debian release is simply buggy, but such a corner case that only affects basically you it's not going to be updated there (because upstream has fixed it in a new version, and Debian isn't going to bump the version). So you end up making an exception for just these handful of packages (basically using py2deb). And hope it doesn't get too many.
The step from there to "just pull everything from PyPI with version/hash pinning" is very, very small.
