3 ms·
> Python is basically almost everywhere installed but the dependency on runtime + venv oddities bring their own set of problems Not that it changes your core m
by 0cf8612b2e1e 4y ago
> Python is basically almost everywhere installed but the dependency on runtime + venv oddities bring their own set of problems
Not that it changes your core message, but if you need scripting dependencies, you should use pipx[0]. Pipx will manage isolated virtual environments for each utility. ‘pipx install black’ will create a dedicated venv just to hold black. Invoking ‘pipx upgrade-all’ will scan all venvs for out of date utilities.
[0] https://pypa.github.io/pipx/ https://pypa.github.io/pipx/
- noisy_boy 4y agoTrue but then the script needs to install its dependencies dynamically from a given host and hosts may have different configurations/network restrictions etc. Also, that'll result in scripts having to include their install related boilerplate which is besides the core functionality OR we need a separate script/stage that sets it all up. Admittedly these are solved problems but it all just feels a bit more messy compared to, say, a Go utility which can be just dropped and run.
- 0cf8612b2e1e 4y agoMy personal rule of thumb is that if it requires something not in the Python standard library, it is no longer a script and requires a real development process.