Skip to content

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

Closed
blink1073 wants to merge 1 commit into
mainfrom
PYTHON-6084
Closed

blink1073 wants to merge 1 commit into
mainfrom
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 8 times, most recently from b5412d1 to 1e0222c Compare September 11, 2026 23:24
@blink1073
blink1073 changed the base branch from PYTHON-6091 to main September 25, 2026 10:44
@blink1073 blink1073 closed this Sep 25, 2026
@blink1073 blink1073 reopened this Sep 25, 2026
@blink1073
blink1073 force-pushed the PYTHON-6084 branch 2 times, most recently from 37bb879 to d6f528c Compare September 25, 2026 11: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