diff --git a/python/BUILD.bazel b/python/BUILD.bazel index 5fc35f8357..5c4626ee55 100644 --- a/python/BUILD.bazel +++ b/python/BUILD.bazel @@ -126,7 +126,6 @@ bzl_library( srcs = ["py_binary.bzl"], deps = [ "//python/private:py_binary_macro_bzl", - "//python/private:register_extension_info_bzl", ], ) @@ -175,7 +174,6 @@ bzl_library( srcs = ["py_library.bzl"], deps = [ "//python/private:py_library_macro_bzl", - "//python/private:register_extension_info_bzl", ], ) @@ -208,7 +206,6 @@ bzl_library( srcs = ["py_test.bzl"], deps = [ "//python/private:py_test_macro_bzl", - "//python/private:register_extension_info_bzl", ], ) diff --git a/python/private/BUILD.bazel b/python/private/BUILD.bazel index dd66c9ddfd..7b8c82de8f 100644 --- a/python/private/BUILD.bazel +++ b/python/private/BUILD.bazel @@ -612,11 +612,6 @@ bzl_library( ], ) -bzl_library( - name = "register_extension_info_bzl", - srcs = ["register_extension_info.bzl"], -) - bzl_library( name = "repo_utils_bzl", srcs = ["repo_utils.bzl"], diff --git a/python/private/attributes.bzl b/python/private/attributes.bzl index 6d08c3d926..8fef1bbe2c 100644 --- a/python/private/attributes.bzl +++ b/python/private/attributes.bzl @@ -44,12 +44,6 @@ REQUIRED_EXEC_GROUP_BUILDERS = { "py_precompile": lambda: ruleb.ExecGroup(), } -# Backwards compatibility symbol for Google. -REQUIRED_EXEC_GROUPS = { - k: v().build() - for k, v in REQUIRED_EXEC_GROUP_BUILDERS.items() -} - _STAMP_VALUES = [-1, 0, 1] def _precompile_attr_get_effective_value(ctx): diff --git a/python/private/py_executable.bzl b/python/private/py_executable.bzl index dd0a1a1d6e..0df04a96d9 100644 --- a/python/private/py_executable.bzl +++ b/python/private/py_executable.bzl @@ -1859,7 +1859,3 @@ def cc_configure_features( feature_configuration = feature_configuration, requested_features = requested_features, ) - -only_exposed_for_google_internal_reason = struct( - create_runfiles_with_build_data = _create_runfiles_with_build_data, -) diff --git a/python/private/register_extension_info.bzl b/python/private/register_extension_info.bzl deleted file mode 100644 index 408df6261e..0000000000 --- a/python/private/register_extension_info.bzl +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2023 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -"""Stub implementation to make patching easier.""" - -# buildifier: disable=unused-variable -def register_extension_info(**kwargs): - """A no-op stub to make Google patching easier.""" diff --git a/python/py_binary.bzl b/python/py_binary.bzl index 68541ab842..80d371fd4c 100644 --- a/python/py_binary.bzl +++ b/python/py_binary.bzl @@ -15,7 +15,6 @@ """Public entry point for py_binary.""" load("//python/private:py_binary_macro.bzl", _py_binary = "py_binary") -load("//python/private:register_extension_info.bzl", "register_extension_info") def py_binary(**attrs): """Creates an executable Python program. @@ -38,8 +37,3 @@ def py_binary(**attrs): fail("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886") _py_binary(**attrs) - -register_extension_info( - extension = py_binary, - label_regex_for_dep = "{extension_name}", -) diff --git a/python/py_library.bzl b/python/py_library.bzl index 277593b0c5..c5cae241f6 100644 --- a/python/py_library.bzl +++ b/python/py_library.bzl @@ -15,7 +15,6 @@ """Public entry point for py_library.""" load("//python/private:py_library_macro.bzl", _py_library = "py_library") -load("//python/private:register_extension_info.bzl", "register_extension_info") def py_library(**attrs): """Creates an executable Python program. @@ -35,8 +34,3 @@ def py_library(**attrs): fail("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886") _py_library(**attrs) - -register_extension_info( - extension = py_library, - label_regex_for_dep = "{extension_name}", -) diff --git a/python/py_test.bzl b/python/py_test.bzl index 70f8ff5d09..2f31e0865e 100644 --- a/python/py_test.bzl +++ b/python/py_test.bzl @@ -15,7 +15,6 @@ """Public entry point for py_test.""" load("//python/private:py_test_macro.bzl", _py_test = "py_test") -load("//python/private:register_extension_info.bzl", "register_extension_info") def py_test(**attrs): """Creates an executable Python program. @@ -39,8 +38,3 @@ def py_test(**attrs): # buildifier: disable=native-python _py_test(**attrs) - -register_extension_info( - extension = py_test, - label_regex_for_dep = "{extension_name}", -)