File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff 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.
201178COMMON_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.
Original file line number Diff line number Diff line change 1616load ("@bazel_skylib//lib:dicts.bzl" , "dicts" )
1717load ("@bazel_skylib//lib:paths.bzl" , "paths" )
1818load ("@bazel_skylib//rules:common_settings.bzl" , "BuildSettingInfo" )
19- load (":attributes.bzl" , "NATIVE_RULES_ALLOWLIST_ATTRS" )
2019load (":common_labels.bzl" , "labels" )
2120load (":flags.bzl" , "FreeThreadedFlag" )
2221load (":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>" ,
You can’t perform that action at this time.
0 commit comments