Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ bzl_library(
srcs = ["py_binary.bzl"],
deps = [
"//python/private:py_binary_macro_bzl",
"//python/private:register_extension_info_bzl",
],
)

Expand Down Expand Up @@ -175,7 +174,6 @@ bzl_library(
srcs = ["py_library.bzl"],
deps = [
"//python/private:py_library_macro_bzl",
"//python/private:register_extension_info_bzl",
],
)

Expand Down Expand Up @@ -208,7 +206,6 @@ bzl_library(
srcs = ["py_test.bzl"],
deps = [
"//python/private:py_test_macro_bzl",
"//python/private:register_extension_info_bzl",
],
)

Expand Down
5 changes: 0 additions & 5 deletions python/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
6 changes: 0 additions & 6 deletions python/private/attributes.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 0 additions & 4 deletions python/private/py_executable.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
18 changes: 0 additions & 18 deletions python/private/register_extension_info.bzl

This file was deleted.

6 changes: 0 additions & 6 deletions python/py_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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}",
)
6 changes: 0 additions & 6 deletions python/py_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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}",
)
6 changes: 0 additions & 6 deletions python/py_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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}",
)