Skip to content

Conversation

@nettle
Copy link
Collaborator

@nettle nettle commented Jan 16, 2026

Why:
Need to make python runtime more portable
and be ready for rules_python support.

What:

  • Add toolchain for python instead of _python_runtime
  • Add portable functions for python
  • Fix register_toolchains

Addresses:
First step for rules_python support (Bazel 8) #108

Why:
Need to make python runtime more portable
and be ready for rules_python support.

What:
- Add toolchain for python instead of _python_runtime
- Add portable functions for python
- Fix register_toolchains
Copy link
Contributor

@furtib furtib left a comment

Choose a reason for hiding this comment

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

This patch looks great!
The testing breaks only because the WORKSPACE changed!
This change should also be represented in README.md.

)

register_default_python_toolchain()
register_toolchains("@default_python_tools//:python_toolchain")
Copy link
Contributor

Choose a reason for hiding this comment

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

This line must be added to test/foss/templates/WORKSPACE.template too!
Without this, all FOSS tests using the WORKSPACE file will fail.
Tested locally, all tests are passing with this change.

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