главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorArgos Open Tech <48267258+argosopentech@users.noreply.github.com>2023-10-01 13:22:58 -0500
committerP.J. Finlay <pjappdevelopment@gmail.com>2023-10-01 13:28:04 -0500
commit04964642fb483da5a1ccafc761838b128bd3d4ae (patch)
treeb86d73f3a3b2c3726b928d66232f7e76c6cf2b7a /setup.sh
parent340ffaaa01ad9c96c54287b080773e6742e8fe9c (diff)
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.)
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh2
1 files changed, 1 insertions, 1 deletions
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