From b013181d3594cbeb27a4509e73f71eb35f5b38f0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 15 Aug 2026 07:07:22 +0000 Subject: [PATCH] Drop --python-preference from Linux setup; it conflicts with --no-managed-python. Co-authored-by: Diaco Soltanpour --- desktop/setup_linux.sh | 2 +- tests/test_setup_linux.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/setup_linux.sh b/desktop/setup_linux.sh index 2bbf9e8..f87f762 100755 --- a/desktop/setup_linux.sh +++ b/desktop/setup_linux.sh @@ -74,7 +74,7 @@ fi echo "Syncing dependencies..." # Pin the same interpreter so uv does not honor .python-version (3.12) and # recreate a managed venv without apt gi (python3-gi). -uv sync --python /usr/bin/python3 --no-managed-python --python-preference only-system +uv sync --python /usr/bin/python3 --no-managed-python if ! .venv/bin/python -c 'import gi' >/dev/null 2>&1; then echo "Restoring system site packages on .venv so apt gi is importable..." diff --git a/tests/test_setup_linux.py b/tests/test_setup_linux.py index 318ef4b..60b2a07 100644 --- a/tests/test_setup_linux.py +++ b/tests/test_setup_linux.py @@ -12,7 +12,8 @@ def test_setup_linux_pins_system_python_for_uv_sync(): if line.strip().startswith("uv sync") ] assert sync_lines == [ - "uv sync --python /usr/bin/python3 --no-managed-python --python-preference only-system" + "uv sync --python /usr/bin/python3 --no-managed-python" ] + assert "--python-preference" not in script assert "uv sync --active" not in script assert "include-system-site-packages = true" in script