News for hackers. Stuff that matters.
Re:Show HN: Morgan – PyPI Mirror for Restricted/Offline Envi... by idop on Friday September 23, 2022 @01:27PM (#32954735)
No, as I mention both in this post and in the README. Pip will download binary distributions (wheels) that were compiled for the system it is running on. If my mirror is meant to serve a different version of Python installed on a different OS with a different libc (or other such differences), then it won't work. I could try to match the target environment on the mirroring side, say with Docker, but this is either cumbersome or still not possible if you have legacy environments from years before.
Re:Show HN: Morgan – PyPI Mirror for Restricted/Offline Envi... by jpitz on Friday September 23, 2022 @03:54PM (#32956324)
By default it will download wheels for the system it is running on, but there are knobs to tweak that.

https://pip.pypa.io/en/stable/cli/pip_download/#cmdoption-pl...

https://peps.python.org/pep-0425/

Re:Show HN: Morgan – PyPI Mirror for Restricted/Offline Envi... by vasco on Friday September 23, 2022 @01:55PM (#32955125)
Makes sense and you're right we did encounter issues when changing platforms at the time when we were using some self rolled janky versio n of this! Thanks