From aee2755ff42af466b49a72ff0e620e5995b7a12f Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Wed, 5 Aug 2026 00:35:19 +0000 Subject: [PATCH] feat(python): add py_extension to features loadable_symbols Add py_extension to features.loadable_symbols. This allows callers to use feature detection and optionally load it, if desired. --- python/features.bzl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python/features.bzl b/python/features.bzl index 9339d7889c..99050a7ca5 100644 --- a/python/features.bzl +++ b/python/features.bzl @@ -26,6 +26,10 @@ def _features_typedef(): A map of public API targets available in rules_python for feature detection purposes. + :::{seealso} + * {obj}`features.loadable_symbols` + ::: + :::{versionadded} 1.9.0 ::: :::: @@ -54,6 +58,10 @@ def _features_typedef(): A map of bzl paths to the list of public symbols they export. + :::{seealso} + * {obj}`features.targets` + ::: + :::{versionadded} 2.2.0 ::: :::: @@ -128,6 +136,10 @@ _TARGETS = { } _LOADABLE_SYMBOLS = { + "//python/cc:py_extension.bzl": [ + # keep sorted + "py_extension", + ], "//python:py_info.bzl": [ # keep sorted "PyInfo",