News for hackers. Stuff that matters.
Re:How to improve Python packaging, or why 14 tools are at l... by thinker5555 on Sunday January 15, 2023 @09:44PM (#34396209)
I tinkered with this a little, and it's interesting. But what about using pip list or pip freeze? They don't show the packages in the .lib directory. Do you just add them by hand to the requirements.txt?
Re:How to improve Python packaging, or why 14 tools are at l... by TigerTeamX on Monday January 16, 2023 @04:59AM (#34398867)
I add them by hand to requirements.txt and I try to keep it as minimum as possible. Yes it makes it not 100% reproducible, but it forces me to think about each dependency and I can see in my git log why it was added.
Re:How to improve Python packaging, or why 14 tools are at l... by thinker5555 on Monday January 16, 2023 @06:44AM (#34399666)
It's funny how "pip help list" or "pip help freeze" works. :-) I found I can add --path .lib to list/freeze those. It's an extra step, but not too terrible.