Skip to content

Commit

Permalink
fix(dev-docker): ignore .python-version inside the container
Browse files Browse the repository at this point in the history
It should use Python installed in the container and not attempt to use
something else.

Fixes WeblateOrg#13326
  • Loading branch information
nijel committed Dec 19, 2024
1 parent d0a993b commit f595bb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev-docker/weblate-dev/start-dev
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit f595bb9

Please sign in to comment.