Skip to content

Commit e9b4dfc

Browse files
authored
refactor: remove Google-specific stubs (#3316)
These were needed only to avoid patches inside Google.
1 parent 394dda2 commit e9b4dfc

File tree

8 files changed

+0
-54
lines changed

8 files changed

+0
-54
lines changed

python/BUILD.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ bzl_library(
126126
srcs = ["py_binary.bzl"],
127127
deps = [
128128
"//python/private:py_binary_macro_bzl",
129-
"//python/private:register_extension_info_bzl",
130129
],
131130
)
132131

@@ -175,7 +174,6 @@ bzl_library(
175174
srcs = ["py_library.bzl"],
176175
deps = [
177176
"//python/private:py_library_macro_bzl",
178-
"//python/private:register_extension_info_bzl",
179177
],
180178
)
181179

@@ -208,7 +206,6 @@ bzl_library(
208206
srcs = ["py_test.bzl"],
209207
deps = [
210208
"//python/private:py_test_macro_bzl",
211-
"//python/private:register_extension_info_bzl",
212209
],
213210
)
214211

python/private/BUILD.bazel

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,6 @@ bzl_library(
612612
],
613613
)
614614

615-
bzl_library(
616-
name = "register_extension_info_bzl",
617-
srcs = ["register_extension_info.bzl"],
618-
)
619-
620615
bzl_library(
621616
name = "repo_utils_bzl",
622617
srcs = ["repo_utils.bzl"],

python/private/attributes.bzl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ REQUIRED_EXEC_GROUP_BUILDERS = {
4444
"py_precompile": lambda: ruleb.ExecGroup(),
4545
}
4646

47-
# Backwards compatibility symbol for Google.
48-
REQUIRED_EXEC_GROUPS = {
49-
k: v().build()
50-
for k, v in REQUIRED_EXEC_GROUP_BUILDERS.items()
51-
}
52-
5347
_STAMP_VALUES = [-1, 0, 1]
5448

5549
def _precompile_attr_get_effective_value(ctx):

python/private/py_executable.bzl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,3 @@ def cc_configure_features(
18591859
feature_configuration = feature_configuration,
18601860
requested_features = requested_features,
18611861
)
1862-
1863-
only_exposed_for_google_internal_reason = struct(
1864-
create_runfiles_with_build_data = _create_runfiles_with_build_data,
1865-
)

python/private/register_extension_info.bzl

Lines changed: 0 additions & 18 deletions
This file was deleted.

python/py_binary.bzl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""Public entry point for py_binary."""
1616

1717
load("//python/private:py_binary_macro.bzl", _py_binary = "py_binary")
18-
load("//python/private:register_extension_info.bzl", "register_extension_info")
1918

2019
def py_binary(**attrs):
2120
"""Creates an executable Python program.
@@ -38,8 +37,3 @@ def py_binary(**attrs):
3837
fail("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886")
3938

4039
_py_binary(**attrs)
41-
42-
register_extension_info(
43-
extension = py_binary,
44-
label_regex_for_dep = "{extension_name}",
45-
)

python/py_library.bzl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""Public entry point for py_library."""
1616

1717
load("//python/private:py_library_macro.bzl", _py_library = "py_library")
18-
load("//python/private:register_extension_info.bzl", "register_extension_info")
1918

2019
def py_library(**attrs):
2120
"""Creates an executable Python program.
@@ -35,8 +34,3 @@ def py_library(**attrs):
3534
fail("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886")
3635

3736
_py_library(**attrs)
38-
39-
register_extension_info(
40-
extension = py_library,
41-
label_regex_for_dep = "{extension_name}",
42-
)

python/py_test.bzl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""Public entry point for py_test."""
1616

1717
load("//python/private:py_test_macro.bzl", _py_test = "py_test")
18-
load("//python/private:register_extension_info.bzl", "register_extension_info")
1918

2019
def py_test(**attrs):
2120
"""Creates an executable Python program.
@@ -39,8 +38,3 @@ def py_test(**attrs):
3938

4039
# buildifier: disable=native-python
4140
_py_test(**attrs)
42-
43-
register_extension_info(
44-
extension = py_test,
45-
label_regex_for_dep = "{extension_name}",
46-
)

0 commit comments

Comments
 (0)