Skip to content

Commit f386417

Browse files
authored
Update rules_python to version 1.5.1 (KhronosGroup#6259)
The lastest version of the RE2 dependency uses rules_python version 1.5.1. This breaks our current builds because that version requires at least bazel 7.4. This commit updates the version for rules_python to 1.5.1, and update the CI builds to use bazel v7.4.
1 parent 925b0bd commit f386417

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.2
1+
7.4.0

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ local_path_override(
1919
)
2020

2121
bazel_dep(name = "rules_python",
22-
version = "0.34.0")
22+
version = "1.5.1")
2323

2424
# https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
2525
python = use_extension(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ targets, you need to install CMake Version 2.8.12 or later.
452452
- [Python 3](http://www.python.org/): for utility scripts and running the test
453453
suite.
454454
- [Bazel](https://bazel.build/) (optional): if building the source with Bazel,
455-
you need to install Bazel Version 7.0.2 on your machine. Other versions may
455+
you need to install Bazel Version 7.4.0 on your machine. Other versions may
456456
also work, but are not verified.
457457
- [Emscripten SDK](https://emscripten.org) (optional): if building the
458458
WebAssembly module.

kokoro/macos-clang-release-bazel/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ git config --global --add safe.directory $SRC
3232
cd $SRC
3333
/usr/bin/python3 utils/git-sync-deps --treeless
3434

35-
# Get bazel 7.0.2
36-
gsutil cp gs://bazel/7.0.2/release/bazel-7.0.2-darwin-x86_64 .
37-
chmod +x bazel-7.0.2-darwin-x86_64
35+
# Get bazel 7.4.0
36+
gsutil cp gs://bazel/7.4.0/release/bazel-7.4.0-darwin-x86_64 .
37+
chmod +x bazel-7.4.0-darwin-x86_64
3838

3939
echo $(date): Build everything...
40-
./bazel-7.0.2-darwin-x86_64 build --cxxopt=-std=c++17 :all
40+
./bazel-7.4.0-darwin-x86_64 build --cxxopt=-std=c++17 :all
4141
echo $(date): Build completed.
4242

4343
echo $(date): Starting bazel test...
44-
./bazel-7.0.2-darwin-x86_64 test --cxxopt=-std=c++17 :all
44+
./bazel-7.4.0-darwin-x86_64 test --cxxopt=-std=c++17 :all
4545
echo $(date): Bazel test completed.

kokoro/scripts/linux/build-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ elif [ $TOOL = "android-ndk-build" ]; then
230230

231231
echo $(date): ndk-build completed.
232232
elif [ $TOOL = "bazel" ]; then
233-
using bazel-7.0.2
233+
using bazel-7.4.0
234234

235235
echo $(date): Build everything...
236236
bazel build --cxxopt=-std=c++17 :all

0 commit comments

Comments
 (0)