5 ms·
> It's already installed on basically every Linux distribution out there, PEP 668 pretty much negates this though. To do anything you need a python environment
by tayo42 2y ago
> It's already installed on basically every Linux distribution out there,
PEP 668 pretty much negates this though. To do anything you need a python environment set up per script/project w/e
- kristjansson 2y agoIff you’re going beyond stdlib. Which lots of useful python programs don’t need to do.
- BiteCode_dev 2y agoEven if you don't want to limit yourself to the stdlib, you can still use a zipapp : https://docs.python.org/3/library/zipapp.html https://docs.python.org/3/library/zipapp.html
- tayo42 2y agoYou need to introduce a build and release process then to do this then which still detracts from it being simple or the selling point being it's already installed.
- BiteCode_dev 2y agoWith cpan it's the same, you need to install deps somehow. You don't need it if it's just a python script with stdlib, just like with raw perl.
- sgarland 2y agoPython ships with venv support. It’s not that difficult to bootstrap a venv before running your script, and that’s only if you actually need tooling other than stdlib, which you probably don’t.
- tayo42 2y agoIt's definitely clunky and tedious to switch between every projects or scripts environment. Idk why people are pretending there aren't tons of useful libraries out there. Like if you want to script anything with aws, use yaml
- sgarland 2y agoThere are plenty of ways to have the venv automatically activate (and de-activate) when you enter/leave the directory for the project. direnv [0], mise [1], or various shell hooks. There are useful libraries, I’m not saying there aren’t. I just dislike it when people include one as a dependency when they really didn’t need it. [0]: https://github.com/direnv/direnv https://github.com/direnv/direnv [1]: https://github.com/jdx/mise https://github.com/jdx/mise