Skip to content

refactor(toolchains): split the implementation of toolchain rules to separate files#2232

Merged
rickeylev merged 5 commits intobazel-contrib:mainfrom
aignas:refactor/pythons_hub_config_settings
Sep 19, 2024
Merged

refactor(toolchains): split the implementation of toolchain rules to separate files#2232
rickeylev merged 5 commits intobazel-contrib:mainfrom
aignas:refactor/pythons_hub_config_settings

Conversation

@aignas
Copy link
Copy Markdown
Collaborator

@aignas aignas commented Sep 19, 2024

This makes the dependency management in WORKSPACE much easier to do.

Summary:

  • refactor: split out the py_repositories call to a separate file
  • refactor: split out the python_repository rule to a separate file
  • refactor: split out the standalone interpreter utility function
  • refactor: split out the python_register_toolchains function
  • refactor: rename the remaining file

Work towards #2081.

Comment on lines +22 to +23
def is_standalone_interpreter(rctx, python_interpreter_path, *, logger = None):
"""Query a python interpreter target for whether or not it's a rules_rust provided toolchain
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.

Do you happen to know the history of this function? It's always struck me as a bit strange.

@rickeylev rickeylev added this pull request to the merge queue Sep 19, 2024
Merged via the queue into bazel-contrib:main with commit ade0b2b Sep 19, 2024
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