Skip to content

Commit

Permalink
bazel: Rename Python toolchains
Browse files Browse the repository at this point in the history
Remove the minor version from the toolchain name. This makes version
upgrades less painful.

Bug: b/310293060
Change-Id: Ie9655e8949212452986afa474df5031087a7ed93
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/181762
Pigweed-Auto-Submit: Ted Pudlik <[email protected]>
Reviewed-by: Armando Montanez <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
  • Loading branch information
tpudlik authored and CQ Bot Account committed Nov 21, 2023
1 parent 6c2b186 commit a8bf01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations under
# the License.

load("@python3_10//:defs.bzl", "interpreter")
load("@python3//:defs.bzl", "interpreter")

licenses(["notice"])

Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ py_repositories()

# Use Python 3.10 for bazel Python rules.
python_register_toolchains(
name = "python3_10",
name = "python3",
# Allows building as root in a docker container. Required by oss-fuzz.
ignore_root_user_error = True,
python_version = "3.10",
)

load("@python3_10//:defs.bzl", "interpreter")
load("@python3//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")

# Specify third party Python package versions with pip_parse.
Expand Down

0 comments on commit a8bf01a

Please sign in to comment.