News for hackers. Stuff that matters.
Re:Python Modern Practices by tinix on Tuesday July 02, 2024 @06:55PM (#40861237)
pyenv? great! then just use pip with requirements.txt...

what's wrong with pip freeze? why are there so many competing tools?

it's very anti-python IMO.

Re:Python Modern Practices by tmnvix on Tuesday July 02, 2024 @07:14PM (#40861350)
> what's wrong with pip freeze?

I prefer my requirements.txt to include only the packages I install with pip myself (and not their dependencies).

Re:Python Modern Practices by tinix on Tuesday July 02, 2024 @10:44PM (#40862300)
so then maintain a curated requirements.txt...
Re:Python Modern Practices by jampekka on Tuesday July 02, 2024 @07:26PM (#40861427)
Python packaging has always been a mess, and will probably always be. The reasons are mostly sociological.
Re:Python Modern Practices by jcparkyn on Tuesday July 02, 2024 @09:22PM (#40861997)
> what's wrong with pip freeze?

Aside from all the obvious issues of having no distinction between transitive and direct dependencies, it completely breaks cross-platform support if any of your dependencies have platform-specific sub-dependencies (which is not uncommon in python).

Re:Python Modern Practices by tinix on Tuesday July 09, 2024 @12:32AM (#40912548)
pip freeze was an overly simplified hyperbolic jest...

fair point, so when this packaging mess happens, can one not strike a balance, and define the dependencies that you need, then, and let the resolver handle the rest?