Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: move hermetic Python runtime setup into macro #2221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

rickeylev
Copy link
Collaborator

@rickeylev rickeylev commented Sep 15, 2024

This stems from conversation in #2216. Moving the logic into a loading-phase macro makes it
easier to understand how a repo with a python-build-standalone extracted archive has
its toolchain defined. This also makes it easier to compare with the local runtime repo
setup to try and find commonality in the future.

Along the way:

  • Remove some Bazel 5 compatibility code: coverage_tool is now always passed to py_runtime.
    (Bazel 5 support was dropped earlier this year and we stopped testing with it; it's
    likely already broken with Bazel 5).
  • Add semver.to_dict, which makes it easier to pass into format() functions.

this makes it easier to understand how it is setup, both for user
understanding and future unification of code paths.
Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

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

Only minor things, so LGTM!

@rickeylev rickeylev enabled auto-merge September 15, 2024 17:30
@rickeylev rickeylev added this pull request to the merge queue Sep 15, 2024
Merged via the queue into bazel-contrib:main with commit 63114a3 Sep 15, 2024
4 checks passed
@rickeylev rickeylev deleted the refactor.hermetic.runtime.setup.macro branch September 17, 2024 19:02
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