viv/README.md

49 lines
958 B
Markdown
Raw Normal View History

2022-12-20 14:29:21 -06:00
# Viv
<!-- PROJECT DEMO -->
<div align="center">
<a href="https://github.com/daylinmorgan/viv">
<img src="https://raw.githubusercontent.com/daylinmorgan/viv/main/docs/demo.gif" alt="Logo" width=600 >
</a>
<p align="center">
viv isn't venv
</p>
</div>
<br />
2022-12-19 23:17:43 -06:00
## Setup
2022-12-20 10:21:42 -06:00
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`.
2022-12-20 10:21:42 -06:00
You can set `PREFIX` to symlink to a different location.
```sh
git clone git@github.com:daylinmorgan/viv.git ~/.viv
2022-12-21 15:14:38 -06:00
cd ~/.viv
2022-12-20 10:21:42 -06:00
make install # or PREFIX=~/.local/bin make install
```
2022-12-19 23:17:43 -06:00
Place this directory on the python path in your rc file.
```sh
export PYTHONPATH="$PYTHONPATH:$HOME/.viv/src"
```
Then in any python script with external dependencies you can add this line.
```python
__import__("viv").activate("click")
```
## Usage
2023-03-02 23:01:52 -06:00
To remove all viv venvs:
2022-12-19 23:17:43 -06:00
```sh
viv remove $(viv list -q)
```
## Alternatives
- `pipx`
- `pip-run`