mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 02:30:44 -06:00
viv isn't venv
docs | ||
examples | ||
src/viv | ||
.gitignore | ||
.pre-commit-config.yaml | ||
.task.cfg.mk | ||
LICENSE | ||
Makefile | ||
pdm.lock | ||
pyproject.toml | ||
README.md | ||
setup.cfg | ||
todo.md |
Viv
Setup
Start by cloning the repo and symlinking the script for access to the CLI.
By default it will symlink ./src/viv/viv.py
to ~/bin/viv
.
You can set PREFIX
to symlink to a different location.
git clone git@github.com:daylinmorgan/viv.git ~/.viv
cd ~/.viv
make install # or PREFIX=~/.local/bin make install
Place this directory on the python path in your rc file.
export PYTHONPATH="$PYTHONPATH:$HOME/.viv/src"
Then in any python script with external dependencies you can add this line.
__import__("viv").activate("click")
Usage
To remove all viv venvs:
viv remove $(viv list -q)
Alternatives
pipx
pip-run