Skip to content
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

bazel: use hermetic python interpreter #4267

Merged
merged 3 commits into from
Oct 3, 2022

Conversation

oncilla
Copy link
Contributor

@oncilla oncilla commented Sep 30, 2022

Update the rules_python to the latest release and register the hermetic python interpreter with version 3.10.
This also removes the usage of the deprecated pip_install (see bazelbuild/rules_python#807)
Note that rules_python is still requires an interpreter on the host to bootstrap (see bazelbuild/rules_python#691).

This should remove our reliance on the host interpreter as much as possible if the python tools are executed with bazel.
E.g., when running an acceptance test, when linting, or when running the topology generator with bazel run.


This change is Reviewable

Update the rules_python to the latest release and register the hermetic
python interpreter with version 3.10.

This should remove our reliance on the host interpreter if the python
tools are executed with bazel. E.g., when running an acceptance test,
when linting, or when running the topology generator with bazel run.
@oncilla oncilla requested a review from matzf September 30, 2022 09:23
@oncilla oncilla marked this pull request as ready for review September 30, 2022 09:23
Copy link
Collaborator

@matzf matzf left a comment

Choose a reason for hiding this comment

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

This pip_parse business is rather confusing, took me a while to figure out what's going on. But it seems that this is just what it is.

:lgtm:

Reviewed 18 of 18 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @oncilla)

Copy link
Collaborator

@matzf matzf left a comment

Choose a reason for hiding this comment

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

Ah, and btw, it might be worth pointing out in the commit message that this still requires a host python interpreter to be installed (bazelbuild/rules_python#691).

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @oncilla)

@oncilla oncilla merged commit 8fc1648 into scionproto:master Oct 3, 2022
benthor pushed a commit to benthor/scion that referenced this pull request Nov 24, 2022
Update the rules_python to the latest release and register the hermetic python interpreter with version 3.10.
This also removes the usage of the deprecated pip_install (see bazelbuild/rules_python#807)
Note that rules_python is still requires an interpreter on the host to bootstrap (see bazelbuild/rules_python#691).

This should remove our reliance on the host interpreter as much as possible if the python tools are executed with bazel.
E.g., when running an acceptance test, when linting, or when running the topology generator with bazel run.
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.

None yet

2 participants