41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Makefile for managing virtual environments
|
|
|
|
VENV_OPEN_WEBUI=.venv_open_webui
|
|
VENV_LITELLM=.venv_litellm
|
|
ACTIVATE_OPEN_WEBUI=$(VENV_OPEN_WEBUI)/bin/activate
|
|
ACTIVATE_LITELLM=$(VENV_LITELLM)/bin/activate
|
|
|
|
.PHONY: install install_open_webui install_litellm update update_open_webui update_litellm
|
|
|
|
install_open_webui:
|
|
@echo "Creating open-webui environment..."
|
|
python -m venv $(VENV_OPEN_WEBUI)
|
|
. $(ACTIVATE_OPEN_WEBUI) && \
|
|
pip install -U pip open-webui && \
|
|
deactivate
|
|
|
|
install_litellm:
|
|
@echo "Creating litellm environment..."
|
|
python -m venv $(VENV_LITELLM)
|
|
. $(ACTIVATE_LITELLM) && \
|
|
pip install -U pip litellm[proxy] && \
|
|
deactivate
|
|
|
|
install: install_open_webui install_litellm
|
|
@echo "All environments created and packages installed."
|
|
|
|
update_open_webui:
|
|
@echo "Updating open-webui environment..."
|
|
source $(ACTIVATE_OPEN_WEBUI) && \
|
|
pip install -U open-webui && \
|
|
deactivate
|
|
|
|
update_litellm:
|
|
@echo "Updating litellm environment..."
|
|
source $(ACTIVATE_LITELLM) && \
|
|
pip install -U litellm[proxy] && \
|
|
deactivate
|
|
|
|
update: update_open_webui update_litellm
|
|
@echo "All environments updated."
|