Spaces:
Sleeping
Sleeping
Commit ·
a19333a
1
Parent(s): 4f15b05
Fix SearXNG editable install: use --no-build-isolation
Browse filesSearXNG's build backend imports msgspec at metadata time; with build
isolation the preinstalled build deps were invisible, causing
ModuleNotFoundError: No module named 'msgspec'. Install with
--no-build-isolation so the venv's build deps are used.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -26,7 +26,7 @@ ARG SEARXNG_REF=master
|
|
| 26 |
RUN git clone --depth 1 --branch "$SEARXNG_REF" https://github.com/searxng/searxng.git /usr/local/searxng
|
| 27 |
RUN python -m venv /opt/searxng-venv \
|
| 28 |
&& /opt/searxng-venv/bin/pip install -U pip setuptools wheel pyyaml msgspec typing-extensions pybind11 \
|
| 29 |
-
&& /opt/searxng-venv/bin/pip install --use-pep517 -e /usr/local/searxng
|
| 30 |
|
| 31 |
# --- Gradio app into its own venv ---
|
| 32 |
RUN python -m venv /opt/appenv
|
|
|
|
| 26 |
RUN git clone --depth 1 --branch "$SEARXNG_REF" https://github.com/searxng/searxng.git /usr/local/searxng
|
| 27 |
RUN python -m venv /opt/searxng-venv \
|
| 28 |
&& /opt/searxng-venv/bin/pip install -U pip setuptools wheel pyyaml msgspec typing-extensions pybind11 \
|
| 29 |
+
&& /opt/searxng-venv/bin/pip install --use-pep517 --no-build-isolation -e /usr/local/searxng
|
| 30 |
|
| 31 |
# --- Gradio app into its own venv ---
|
| 32 |
RUN python -m venv /opt/appenv
|