Skip to content

feat: add PyInfo.direct_implicit_pyc_files and PyExecutableInfo.venv_runfiles - #4341

Merged
aignas merged 1 commit into
bazel-contrib:mainfrom
FrankPortman:py_runfiles_provider_fields
Oct 27, 2026
Merged

aignas merged 1 commit into
bazel-contrib:mainfrom
FrankPortman:py_runfiles_provider_fields

Conversation

@FrankPortman

Copy link
Copy Markdown
Contributor

PyInfo had a direct counterpart for every pyc field except the implicit pyc files, and PyExecutableInfo exposed the venv's interpreter runfiles but not the application's. Tools that only see providers, like a packager's aspect, need both to tell a target's own files apart from what it inherits.

Also pulls a few internals out so they can be reused, with no change in behavior: py_info_runfiles_files() for the files a binary takes from a dependency's PyInfo, get_runtime_files() for the runtime's files, and get_package_and_version() taking the data files instead of the ctx.

Split out of #4254, which uses all of these.

…runfiles

PyInfo had direct counterparts for every pyc field except the implicit
pyc files, and PyExecutableInfo had the venv's interpreter runfiles but
not the application's. Tools that only see providers, like a packager's
aspect, need both to tell a target's own files apart from what it
inherits.

Also pulls a few internals out so they can be reused without change in
behavior: py_info_runfiles_files() for the files a binary takes from a
dependency's PyInfo, get_runtime_files() for the runtime files, and
get_package_and_version() taking the data files instead of the ctx.

Split out of bazel-contrib#4254.

@aignas aignas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@aignas
aignas added this pull request to the merge queue Oct 27, 2026
Merged via the queue into bazel-contrib:main with commit 5c11b69 Oct 27, 2026
13 checks passed
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.

2 participants