From 6176f76863d66229fe17760a92b4aeb701df9908 Mon Sep 17 00:00:00 2001 From: Xavier Bonaventura Date: Sat, 16 May 2026 10:28:31 +0200 Subject: [PATCH] fix(system_python): Remove printing of not always present attribute This attribute is not part of the Python public API and in Debian 10 Buster (OpenJDK 11, gcc 8.3.0) it seems to not be defined. This reverts one of the debug logging statements added in https://github.com/bazel-contrib/rules_python/pull/3667 Fixes #3774 --- CHANGELOG.md | 2 ++ python/private/python_bootstrap_template.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3feaebf428..8ab1f387d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,8 @@ END_UNRELEASED_TEMPLATE * (pypi) Fix `importlib.metadata.files` by ensuring `RECORD` is included in installed wheel targets, except when built from sdist ([#3024](https://github.com/bazel-contrib/rules_python/issues/3024)). +* (system_python) Fix AttributeError exception on Debian 10 Buster + ([#3774](https://github.com/bazel-contrib/rules_python/issues/3774)). {#v0-0-0-added} diff --git a/python/private/python_bootstrap_template.txt b/python/private/python_bootstrap_template.txt index 0d28aff311..35dbe98bf8 100644 --- a/python/private/python_bootstrap_template.txt +++ b/python/private/python_bootstrap_template.txt @@ -568,7 +568,6 @@ def main(): print_verbose("VENV_REL_SITE_PACKAGES:", VENV_REL_SITE_PACKAGES) print_verbose("WORKSPACE_NAME:", WORKSPACE_NAME ) print_verbose("bootstrap sys.executable:", sys.executable) - print_verbose("bootstrap sys._base_executable:", sys._base_executable) print_verbose("bootstrap sys.version:", sys.version) args = sys.argv[1:]