Skip to content

[tools] Fix hermetic rules_python interpreters with version triples - #24720

Merged
sherm1 merged 1 commit into
RobotLocomotion:masterfrom
jwnimmer-tri:python-repo-version-triple
Jul 14, 2026
Merged

[tools] Fix hermetic rules_python interpreters with version triples#24720
sherm1 merged 1 commit into
RobotLocomotion:masterfrom
jwnimmer-tri:python-repo-version-triple

Conversation

@jwnimmer-tri

@jwnimmer-tri jwnimmer-tri commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Previously we assumed that python_version is always "major.minor", but in the case of hermetic interpreters it might be "major.minor.patch".

Towards #24719.


This change is Reviewable

@jwnimmer-tri jwnimmer-tri added priority: low release notes: fix This pull request contains fixes (no new features) labels Jul 13, 2026
@jwnimmer-tri

jwnimmer-tri commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

+a:@tyler-yankee for feature review or delegation, please.

FYI @BetsyMcPhail.

@tyler-yankee tyler-yankee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@tyler-yankee reviewed 2 files and all commit messages, and made 2 comments.
Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers (waiting on jwnimmer-tri).


tools/workspace/python/defs.bzl line 18 at r1 (raw file):

def _python_version_txt_impl(ctx):
    """Implementation of the python_version_text() rule, below."""

nit

Suggestion:

python_version_txt

Previously we assumed that python_version is always "major.minor", but
in the case of hermetic interpreters it might be "major.minor.patch".

@jwnimmer-tri jwnimmer-tri left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+a:@sherm1 for platform review per schedule, please.

@jwnimmer-tri made 1 comment and resolved 1 discussion.
Reviewable status: LGTM missing from assignee sherm1(platform) (waiting on sherm1 and tyler-yankee).

@sherm1 sherm1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Platform :lgtm:

@sherm1 reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees tyler-yankee,sherm1(platform) (waiting on jwnimmer-tri).

@sherm1
sherm1 merged commit 473b4c3 into RobotLocomotion:master Jul 14, 2026
10 checks passed
@jwnimmer-tri
jwnimmer-tri deleted the python-repo-version-triple branch July 14, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: low release notes: fix This pull request contains fixes (no new features)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants