4 ms·
with python the rule should to be to run every deployment at least in its own venv.
by baq 9y ago
with python the rule should to be to run every deployment at least in its own venv.
- Symbiote 9y agoThat's not so practical if the application is a text editor, or some other administration tool (debugging, statistics etc).
- deleted 9y ago[deleted]
- nine_k 9y agoMy rule of thumb is to never install anything into system Python by pip, etc. If it's not an OS package, it belongs to a virtualenv.
- fiddlerwoaroof 9y agoI more or less have this rule, except I generally will use the --user flag to install things on a per-user basis if it's not being installed for a particular project.
- tonyarkles 9y agoI recently came across this: https://github.com/spotify/dh-virtualenv https://github.com/spotify/dh-virtualenv For a system utility, you can still use virtualenvs. The launcher script just needs to use a shebang like: #!/usr/share/spiffyapp/venv/bin/python