Skip to content

Commit 6312713

Browse files
authored
Update protobuf-python bazel build to set --noenable_bzlmod (google#13082)
//python/dist currently does not build with bzlmod, since we don't support system_python in bzlmod yet. ``` Skipping '//python/dist:binary_wheel': error loading package 'python/dist': Unable to find package for @@[unknown repo 'system_python' requested from @@]//:version.bzl: The repository '@@[unknown repo 'system_python' requested from @@]' could not be resolved: No repository visible as '@system_python' from main repository. Step #1: �[0m�[91mERROR: error loading package 'python/dist': Unable to find package for @@[unknown repo 'system_python' requested from @@]//:version.bzl: The repository '@@[unknown repo 'system_python' requested from @@]' could not be resolved: No repository visible as '@system_python' from main repository. ```
1 parent 59af661 commit 6312713

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/protobuf-python/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
FROM gcr.io/oss-fuzz-base/base-builder-python
1818
RUN curl -L -O https://raw.githubusercontent.com/protobuf-c/protobuf-c/39cd58f5ff06048574ed5ce17ee602dc84006162/t/test-full.proto
1919
RUN git clone https://github.com/protocolbuffers/protobuf.git
20-
RUN cd protobuf && bazel build --nobuild //:protoc //python/dist:binary_wheel
20+
RUN cd protobuf && bazel build --nobuild //:protoc //python/dist:binary_wheel --noenable_bzlmod
2121
COPY build.sh fuzz_* $SRC/

projects/protobuf-python/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cd $SRC/protobuf
3030
type -a python3
3131
/usr/bin/python3 --version
3232
)
33-
bazel build $BAZEL_FLAGS //:protoc //python/dist:binary_wheel
33+
bazel build $BAZEL_FLAGS //:protoc //python/dist:binary_wheel --noenable_bzlmod
3434
PROTOC=$(realpath bazel-bin/protoc)
3535

3636
# Install the protobuf python runtime.

0 commit comments

Comments
 (0)