From 04964642fb483da5a1ccafc761838b128bd3d4ae Mon Sep 17 00:00:00 2001 From: Argos Open Tech <48267258+argosopentech@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:22:58 -0500 Subject: Fix pip install for Hatch LibreTranslate recently switched to the Hatch build system which doesn't seem to support installing in editable mode. I'm removing the -e option from pip install to fix this which isn't necessary unless users want to modify the source after installing. https://github.com/argosopentech/LibreTranslate-init/issues/17 Error before this commit: ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/libretranslate/LibreTranslate (A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.) --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.sh') diff --git a/setup.sh b/setup.sh index c2cd592..4202f40 100755 --- a/setup.sh +++ b/setup.sh @@ -22,6 +22,6 @@ virtualenv ~/LibreTranslate/env ~/LibreTranslate/env/bin/pip install gunicorn # Install and run LibreTranslate on port 5000 -~/LibreTranslate/env/bin/pip install -e ~/LibreTranslate/ --no-cache-dir +~/LibreTranslate/env/bin/pip install ~/LibreTranslate/ --no-cache-dir ~/LibreTranslate/env/bin/libretranslate -- cgit v1.2.3