3 ms·
> tools like pip-run already support running a script for which you have the deps described with such comments > Packages are installed in a temporary virtual
by codedokode 3y ago
> tools like pip-run already support running a script for which you have the deps described with such comments
> Packages are installed in a temporary virtual env and deleted after the run, like npx used to do for the JS world.
Is it efficient? Download packages, install them only to delete several seconds later. Wastes precious SSD cells.
- userbinator 3y agoThere's a massive amount of developers who unfortunately either don't know or don't care about efficiency. They'll blindly run commands with huge resource consumption with no second thought (or even an idea that such a thing is happening.) It wasn't long ago that a developer I was working with seemed to have entirely not comprehended the idea when I asked why he was searching for and downloading a dozen-MB PDF just to open (i.e. delete when closed) every time he wanted to look up one thing in it! I accumulate documentation for a project and keep most of it open throughout; I thought that was a usual thing to do, but apparently others will go online to search for that information every single time, then close the browser and reopen it whenver they need to look up something else. More publicly, it's also not long ago that Docker, and more relevantly, PyPI, have been getting worried about their bandwidth usage: https://news.ycombinator.com/item?id=24262757 https://news.ycombinator.com/item?id=24262757 https://news.ycombinator.com/item?id=27205586 https://news.ycombinator.com/item?id=27205586