Skip to content

fix(bazel): install python3-distutils#1100

Open
Haihan-Jiang wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
Haihan-Jiang:codex/cloud-builders-bazel-python3-distutils
Open

fix(bazel): install python3-distutils#1100
Haihan-Jiang wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
Haihan-Jiang:codex/cloud-builders-bazel-python3-distutils

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

Fixes #900

What changed

  • Added python3-distutils to the Bazel builder image package list.

Why

The Bazel builder already installs Python 3 and Python package resources, but Python 3 distutils is not present in the Ubuntu 20.04 base image by default. Bazel/rules_python paths that import distutils.cmd can fail with ModuleNotFoundError without this package.

Validation

  • git diff --check
  • Verified bazel/Dockerfile contains python3-distutils alongside the existing Python 3 packages.

I could not run a container build locally because the Docker CLI is installed but the Docker daemon is not running in this environment.

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 24, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Bazel image missing python3-distutils

1 participant