From f595bb94b4adb4d218d8aa557fe757372f47f57c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 19 Dec 2024 09:04:53 +0100 Subject: [PATCH] fix(dev-docker): ignore .python-version inside the container It should use Python installed in the container and not attempt to use something else. Fixes #13326 --- dev-docker/weblate-dev/start-dev | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-docker/weblate-dev/start-dev b/dev-docker/weblate-dev/start-dev index 000bd8833f70..39bb9348594e 100755 --- a/dev-docker/weblate-dev/start-dev +++ b/dev-docker/weblate-dev/start-dev @@ -9,18 +9,18 @@ set -e cd /app/src echo "Exporting Weblate requirements..." -uv export --format requirements-txt --python /usr/local/bin/python --all-extras --no-sources > /tmp/requirements.txt +uv export --no-config --format requirements-txt --python /usr/local/bin/python --all-extras --no-sources > /tmp/requirements.txt echo "Checking /app/venv..." if [ ! -f /app/venv/bin/activate ]; then - uv venv /app/venv + uv venv --no-config /app/venv fi echo "/app/data/python" > "/app/venv/lib/python${PYVERSION}/site-packages/weblate-docker.pth" # shellcheck disable=SC1091 . /app/venv/bin/activate echo "Installing Weblate requirements..." -uv pip install -r /tmp/requirements.txt +uv pip install --no-config -r /tmp/requirements.txt echo "Starting Weblate..." exec /app/bin/start "$@"