From 92298a469daa9d177b5dd5003f85d5e25a541724 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Sun, 12 Apr 2026 22:00:11 -0700 Subject: [PATCH 1/3] hint about target_platforms vs requirements_by_platform distinction --- python/private/pypi/pkg_aliases.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/private/pypi/pkg_aliases.bzl b/python/private/pypi/pkg_aliases.bzl index e76a139651..7ec92dd914 100644 --- a/python/private/pypi/pkg_aliases.bzl +++ b/python/private/pypi/pkg_aliases.bzl @@ -53,6 +53,9 @@ wheels available for this distribution. This distribution supports the following configuration settings: {config_settings} +As configured by the `pip.parse.target_platforms` settings (note that +`requirements_by_platform` only affects the Bazel host platform). + To determine the current configuration's Python version, run: `bazel config ` (shown further below) From cafb4abb8e239d568b201c6242d04a49b899edd3 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Sun, 12 Apr 2026 22:04:07 -0700 Subject: [PATCH 2/3] Update python/private/pypi/pkg_aliases.bzl Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- python/private/pypi/pkg_aliases.bzl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/private/pypi/pkg_aliases.bzl b/python/private/pypi/pkg_aliases.bzl index 7ec92dd914..120bf94146 100644 --- a/python/private/pypi/pkg_aliases.bzl +++ b/python/private/pypi/pkg_aliases.bzl @@ -53,8 +53,9 @@ wheels available for this distribution. This distribution supports the following configuration settings: {config_settings} -As configured by the `pip.parse.target_platforms` settings (note that -`requirements_by_platform` only affects the Bazel host platform). +As configured by the `pip.parse.target_platforms` attribute. Note that +`requirements_by_platform` only affects the Bazel host platform unless +`target_platforms` is also set. To determine the current configuration's Python version, run: `bazel config ` (shown further below) From c41a8b272128ab37cc4254bd3b37443fab5c90cd Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Sun, 12 Apr 2026 22:21:06 -0700 Subject: [PATCH 3/3] Update python/private/pypi/pkg_aliases.bzl Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com> --- python/private/pypi/pkg_aliases.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/private/pypi/pkg_aliases.bzl b/python/private/pypi/pkg_aliases.bzl index 120bf94146..111a49d3c6 100644 --- a/python/private/pypi/pkg_aliases.bzl +++ b/python/private/pypi/pkg_aliases.bzl @@ -46,7 +46,7 @@ load( ) _NO_MATCH_ERROR_TEMPLATE = """\ -No matching wheel for current configuration's Python version. +No matching wheel for current configuration's Python version and platform. The current build configuration's Python version doesn't match any of the Python wheels available for this distribution. This distribution supports the following Python