Skip to content

Commit 9335ff4

Browse files
committed
Internal: Downgrade to python 3.10
Avoids rules_python internal clash Works around bazel-contrib/rules_python#1638 until the next rules_python is released Should fix hedronvision#157
1 parent ce32226 commit 9335ff4

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ filegroup(
1717
srcs = glob(["**/*.bzl"]) + [
1818
"@bazel_tools//tools:bzl_srcs",
1919
"@hedron_compile_commands_pip//:requirements.bzl",
20-
"@python_3_11//:defs.bzl",
20+
"@python_3_10//:defs.bzl",
2121
"@rules_python//:bzl",
2222
],
2323
)

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ pttt = use_extension("//:workspace_setup_transitive_transitive_transitive.bzl",
99
bazel_dep(name = "rules_python", version = "0.27.1")
1010
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
1111
python.toolchain(
12-
python_version = "3.11",
12+
python_version = "3.10",
1313
)
14-
use_repo(python, "python_3_11")
14+
use_repo(python, "python_3_10")
1515
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
1616
pip.parse(
1717
hub_name = "hedron_compile_commands_pip",
1818
# Available versions are listed in @rules_python//python:versions.bzl.
19-
python_version = "3.11",
19+
python_version = "3.10",
2020
requirements_lock = "//:requirements.txt",
2121
)
2222
use_repo(pip, "hedron_compile_commands_pip")

refresh_compile_commands.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ refresh_compile_commands(
5858

5959
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
6060
load("@hedron_compile_commands_pip//:requirements.bzl", "requirement")
61-
load("@python_3_11//:defs.bzl", "py_binary")
61+
load("@python_3_10//:defs.bzl", "py_binary")
6262

6363

6464
def refresh_compile_commands(

workspace_setup_transitive.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def hedron_compile_commands_setup_transitive(module_ctx = None):
2929
if not module_ctx:
3030
py_repositories()
3131
python_register_toolchains(
32-
name = "python_3_11",
32+
name = "python_3_10",
3333
# Available versions are listed in @rules_python//python:versions.bzl.
34-
python_version = "3.11",
34+
python_version = "3.10",
3535
)
3636

3737
hedron_compile_commands_extension = module_extension( # Note: Doesn't break loading from WORKSPACE as far back as Bazel 5.0.0

workspace_setup_transitive_transitive.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Do not change the filename; it is part of the user interface.
22

33

4-
load("@python_3_11//:defs.bzl", "interpreter")
4+
load("@python_3_10//:defs.bzl", "interpreter")
55
load("@rules_python//python:pip.bzl", "pip_parse")
66

77

0 commit comments

Comments
 (0)