Files

18 lines
583 B
Makefile

LIBRETRANSLATE_PYTHON_VERSION = 3.10.12
.PHONY: libretranslate
libretranslate: libretranslate/venv
cd libretranslate && . venv/bin/activate && libretranslate --port 5000 --load-only en,cs
.PHONY: libretranslate_clean
libretranslate_clean:
rm -rf libretranslate/venv
rm -rf libretranslate/db
libretranslate/venv:
pyenv install -s $(LIBRETRANSLATE_PYTHON_VERSION)
cd libretranslate && \
PYENV_VERSION=$(LIBRETRANSLATE_PYTHON_VERSION) pyenv exec python -m venv venv
cd libretranslate && . venv/bin/activate && \
pip install --upgrade pip && pip install -r requirements.txt