Skip to content

PYTHON-6084 Rework Evergreen Python interpreter selection for uv - #26

Draft
blink1073 wants to merge 1 commit into
PYTHON-6091from
PYTHON-6084
Draft

PYTHON-6084 Rework Evergreen Python interpreter selection for uv#26
blink1073 wants to merge 1 commit into
PYTHON-6091from
PYTHON-6084

Conversation

@blink1073

@blink1073 blink1073 commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Rework how Evergreen selects the Python interpreter for uv tasks. Task config now sets UV_PYTHON directly (a version like 3.10/3.14t, an implementation like pypy3.11, or an absolute path) instead of a TOOLCHAIN_VERSION expansion that a script translated per host, so the interpreter lookup happens on the host.

  • Task config sets UV_PYTHON directly; removed TOOLCHAIN_VERSION and regenerated the Evergreen task and variant configs.
  • setup-uv-python.sh resolves the interpreter on the host, setting UV_PYTHON_SEARCH_PATH/UV_PYTHON_PREFERENCE against a matching toolchain Python, and defaults to CPython 3.10 when a task does not pin one.
  • setup_tests.py/utils.py/run-tests.sh propagate and scrub the UV_PYTHON search-path vars; the perf task clears them so its exact-patch interpreter resolves normally.

PYTHON-6084

Changes in this PR

Test Plan

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

Comment thread .evergreen/scripts/generate_config_utils.py Outdated
Comment thread .evergreen/scripts/setup-uv-python.sh Outdated
Comment thread .evergreen/scripts/setup-uv-python.sh Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread .github/actions/python-setup/action.yml Outdated
Comment thread .evergreen/scripts/install-dependencies.sh Outdated
Comment thread .evergreen/scripts/install-dependencies.sh Outdated
Comment thread .evergreen/scripts/configure-env.sh Outdated
Comment thread .evergreen/scripts/install-dependencies.sh Outdated
Comment thread .evergreen/scripts/setup-uv-python.sh Outdated
@blink1073
blink1073 changed the base branch from main to PYTHON-6091 September 11, 2026 11:55
@blink1073
blink1073 force-pushed the PYTHON-6084 branch 7 times, most recently from 7912a7e to b5412d1 Compare September 11, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant