Skip to content

Commit 30d1d29

Browse files
committed
remove no-op _native_rules_allowlist
1 parent ea4b040 commit 30d1d29

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

python/private/attributes.bzl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -174,33 +174,9 @@ This is because Python has a concept of runtime resources.
174174
),
175175
}
176176

177-
def _create_native_rules_allowlist_attrs():
178-
if py_internal:
179-
# The fragment and name are validated when configuration_field is called
180-
default = configuration_field(
181-
fragment = "py",
182-
name = "native_rules_allowlist",
183-
)
184-
185-
# A None provider isn't allowed
186-
providers = [_PackageSpecificationInfo]
187-
else:
188-
default = None
189-
providers = []
190-
191-
return {
192-
"_native_rules_allowlist": lambda: attrb.Label(
193-
default = default,
194-
providers = providers,
195-
),
196-
}
197-
198-
NATIVE_RULES_ALLOWLIST_ATTRS = _create_native_rules_allowlist_attrs()
199-
200177
# Attributes common to all rules.
201178
COMMON_ATTRS = dicts.add(
202179
DATA_ATTRS,
203-
NATIVE_RULES_ALLOWLIST_ATTRS,
204180
# buildifier: disable=attr-licenses
205181
{
206182
# NOTE: This attribute is deprecated and slated for removal.

python/private/py_runtime_rule.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
load("@bazel_skylib//lib:dicts.bzl", "dicts")
1717
load("@bazel_skylib//lib:paths.bzl", "paths")
1818
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
19-
load(":attributes.bzl", "NATIVE_RULES_ALLOWLIST_ATTRS")
2019
load(":common_labels.bzl", "labels")
2120
load(":flags.bzl", "FreeThreadedFlag")
2221
load(":py_internal.bzl", "py_internal")
@@ -191,7 +190,6 @@ py_runtime(
191190
""",
192191
fragments = ["py"],
193192
attrs = dicts.add(
194-
{k: v().build() for k, v in NATIVE_RULES_ALLOWLIST_ATTRS.items()},
195193
{
196194
"abi_flags": attr.string(
197195
default = "<AUTO>",

0 commit comments

Comments
 (0)