diff options
author | Ted Pudlik <tpudlik@google.com> | 2023-11-14 17:08:42 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-11-14 17:08:42 +0000 |
commit | ddb85e3199741a8ff18f6b254cab56d3f3a80933 (patch) | |
tree | afefbb29731cf82ef520ba50a57e334d64f25fb5 | |
parent | 1548f2406f69d61c8f90e847eb6ba0d1d178b330 (diff) | |
download | pigweed-ddb85e3199741a8ff18f6b254cab56d3f3a80933.tar.gz |
Revert "bazel: Use Python 3.11"
This reverts commit 8a42e20a49f2810d8823cd057c81b6b65c970702.
Reason for revert: Broke Mac x86 builders
Original change's description:
> bazel: Use Python 3.11
>
> This matches what we do in GN already.
>
> Also, change the WORKSPACE name from "python3_10" to just "python3"
> (rather than "python3_11"), so that these upgrades don't require us to
> change names all over the place (including in downstream!).
>
> Fixes: b/310293060
> Change-Id: I3479f52a2d8a46850af8a65e14472bc4b6ee1b0d
> Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/180534
> Reviewed-by: Armando Montanez <amontanez@google.com>
> Commit-Queue: Ted Pudlik <tpudlik@google.com>
TBR=amontanez@google.com,pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com,tonymd@google.com,tpudlik@google.com
Change-Id: Icc0497f62278dae5af0a0ad6b2abce3a946e51de
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/180914
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
-rw-r--r-- | BUILD.bazel | 2 | ||||
-rw-r--r-- | WORKSPACE | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index fa64b0ae3..38273ae0d 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations under # the License. -load("@python3//:defs.bzl", "interpreter") +load("@python3_10//:defs.bzl", "interpreter") licenses(["notice"]) @@ -139,15 +139,15 @@ http_archive( load("@rules_python//python:repositories.bzl", "python_register_toolchains") -# Use Python 3.11 for bazel Python rules. +# Use Python 3.10 for bazel Python rules. python_register_toolchains( - name = "python3", + name = "python3_10", # Allows building as root in a docker container. Required by oss-fuzz. ignore_root_user_error = True, - python_version = "3.11", + python_version = "3.10", ) -load("@python3//:defs.bzl", "interpreter") +load("@python3_10//:defs.bzl", "interpreter") load("@rules_python//python:pip.bzl", "pip_parse") # Specify third party Python package versions with pip_parse. |