diff options
author | Argos Open Tech <48267258+argosopentech@users.noreply.github.com> | 2023-10-01 13:22:58 -0500 |
---|---|---|
committer | P.J. Finlay <pjappdevelopment@gmail.com> | 2023-10-01 13:28:04 -0500 |
commit | 04964642fb483da5a1ccafc761838b128bd3d4ae (patch) | |
tree | b86d73f3a3b2c3726b928d66232f7e76c6cf2b7a /setup.sh | |
parent | 340ffaaa01ad9c96c54287b080773e6742e8fe9c (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-x | setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |