summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-08-08 11:46:54 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-08-21 12:09:14 +0200
commitfe6bac5a08b8dfc8d91478f5ed78bd584ec9c147 (patch)
tree83ef5875c0f0144ed9968fa1a90ae67eea000708 /docs
parente45b771ffaeeb41a22fa17690b27be98b01d14cc (diff)
downloadsearxng-fe6bac5a08b8dfc8d91478f5ed78bd584ec9c147.tar.gz
searxng-fe6bac5a08b8dfc8d91478f5ed78bd584ec9c147.zip
[fix] pip install -e: legacy editable install (setup.py develop) is deprecated
From [1]: There is now a standardized mechanism [2] for an installer like pip to request an editable install of a project. pip is transitioning to using this standard only instead of invoking the deprecated `setup.py develop` command. For backward compatibility, we can use switches: --use-pep517 https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-use-pep517 --no-build-isolation https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-no-build-isolation - [1] https://github.com/pypa/pip/issues/11457 - [2] https://peps.python.org/pep-0660/ Closes: https://github.com/searxng/searxng/issues/3701 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs')
-rw-r--r--docs/build-templates/searxng.rst2
-rw-r--r--docs/dev/makefile.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/build-templates/searxng.rst b/docs/build-templates/searxng.rst
index 14b385468..bc5d3e8fc 100644
--- a/docs/build-templates/searxng.rst
+++ b/docs/build-templates/searxng.rst
@@ -123,7 +123,7 @@ ${fedora_build}
# jump to SearXNG's working tree and install SearXNG into virtualenv
(${SERVICE_USER})$ cd \"$SEARXNG_SRC\"
- (${SERVICE_USER})$ pip install -e .
+ (${SERVICE_USER})$ pip install --use-pep517 --no-build-isolation -e .
.. END manage.sh update_packages
diff --git a/docs/dev/makefile.rst b/docs/dev/makefile.rst
index 3c3b2bf3b..383113bae 100644
--- a/docs/dev/makefile.rst
+++ b/docs/dev/makefile.rst
@@ -61,7 +61,7 @@ working tree and release a ``make install`` to get a virtualenv with a
$ make install
PYENV [virtualenv] installing ./requirements*.txt into local/py3
...
- PYENV [install] pip install -e 'searx[test]'
+ PYENV [install] pip install --use-pep517 --no-build-isolation -e 'searx[test]'
...
Successfully installed searxng-2023.7.19+a446dea1b
@@ -78,7 +78,7 @@ the check fails if you edit the requirements listed in
...
PYENV [virtualenv] installing ./requirements*.txt into local/py3
...
- PYENV [install] pip install -e 'searx[test]'
+ PYENV [install] pip install --use-pep517 --no-build-isolation -e 'searx[test]'
...
Successfully installed searxng-2023.7.19+a446dea1b