Skip to content

Commit

Permalink
Update rules_python to use 3.12 (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane authored Feb 14, 2024
1 parent d1a49cc commit a8b68b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,13 @@ git_repository(
load("@rules_python//python:repositories.bzl", "python_register_toolchains")

python_register_toolchains(
name = "python3_11",
name = "python3_12",
ignore_root_user_error = True,
# https://github.com/bazelbuild/rules_python/blob/main/python/versions.bzl
python_version = "3.11",
python_version = "3.12",
)

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

pip_parse(
Expand Down
4 changes: 2 additions & 2 deletions tools/windows/install-deps.bat
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ winget install "Microsoft.VisualStudio.2022.Community" --override "install --con

echo.
echo.* Step 4: Install Python 3.
winget install Python3 -v 3.11.3 --override "/passive PrependPath=1"
winget install Python3 -v 3.12.1 --override "/passive PrependPath=1"
@rem bazel requires a bazel3.exe binary, create a symlink for it.
mklink "%LOCALAPPDATA%\Programs\Python\Python311\python3.exe" "%LOCALAPPDATA%\Programs\Python\Python311\python.exe"
mklink "%LOCALAPPDATA%\Programs\Python\Python312\python3.exe" "%LOCALAPPDATA%\Programs\Python\Python312\python.exe"

echo.
echo.* Step 5: Install msys2.
Expand Down

0 comments on commit a8b68b3

Please sign in to comment.