3 ms·
What packaging systems are there that don't encourage different environments for different projects? I think Python's biggest weakness on this front is mainly
by simonw 3y ago
What packaging systems are there that don't encourage different environments for different projects?
I think Python's biggest weakness on this front is mainly that virtual environments came along too late - if they'd been designed into how pip etc worked from the beginning we would be in much better shape.
- maxmcd 3y agoAny os-level package manager. Also: "npm -g", "pip install", "cargo install", etc.. Lots of programming languages or build systems will look for dependencies in globally-known locations. Other than cargo, python's virtualenv, node_modules, and some other modern languages/systems I would imagine most are not project-scoped. Go had a single global dependency tree until go.mod, etc...
- SahAssar 3y ago"npm" is a environment/scoped package manager. Saying "npm -g" when -g is a flag tell it to run in a non-default way (globally) is a bad argument.