Skip to content

Use Python files_to_run providers when building wheels#236

Open
jsun-splunk wants to merge 1 commit into
jvolkman:mainfrom
jsun-splunk:jsun-files-to-run
Open

Use Python files_to_run providers when building wheels#236
jsun-splunk wants to merge 1 commit into
jvolkman:mainfrom
jsun-splunk:jsun-files-to-run

Conversation

@jsun-splunk
Copy link
Copy Markdown
Contributor

Add support for pycross_wheel_build to use PyRuntimeInfo.interpreter_files_to_run when selecting the Python executable for wheel build actions. This adds support for runtimes that expose a launcher or other executable wrapper instead of relying directly on interpreter.path.

Carry the FilesToRunProvider through the pycross toolchain info as well, so configured pycross toolchains and the default Python toolchain path use the same runtime executable shape. This depends on the PyRuntimeInfo update that adds FilesToRunProvider support:

bazel-contrib/rules_python#3795

Add support for pycross_wheel_build to use PyRuntimeInfo.interpreter_files_to_run when selecting the Python executable for wheel build actions. This adds support for runtimes that expose a launcher or other executable wrapper instead of relying directly on interpreter.path.

Carry the FilesToRunProvider through the pycross toolchain info as well, so configured pycross toolchains and the default Python toolchain path use the same runtime executable shape. This depends on the PyRuntimeInfo update that adds FilesToRunProvider support:

bazel-contrib/rules_python#3795
@jsun-splunk jsun-splunk marked this pull request as ready for review May 22, 2026 05:49
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