Hacker News new | ask | show | jobs
by tdeck 252 days ago
But then all the tool's dependencies have to play nice with the dependencies of all your other unrelated Python-based tools.

One thing you can do (I'm not saying it's user friendly) is set up the tool in a virtualenv and then set up an alias like

    alias foo-tool=/home/blah blah/tools/something/env/bin/python -m foo-tool
3 comments

Or you can make a symlink from your PATH, which is how Pipx does it.
But this is true for anything that isn't statically linked?
Why would static linking be necessary? The virtual environment contains all the needed dependencies, and isolates them from everything else.
ah, right!