Skip to content

Commit 8c68963

Browse files
committed
setup docs, bzl_library, minor cleanup
1 parent 24aab23 commit 8c68963

File tree

4 files changed

+477
-197
lines changed

4 files changed

+477
-197
lines changed

docs/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ sphinx_stardocs(
102102
"//python/private:py_library_rule_bzl",
103103
"//python/private:py_runtime_rule_bzl",
104104
"//python/private:py_test_rule_bzl",
105+
"//python/private:rule_builders_bzl",
105106
"//python/private/api:py_common_api_bzl",
106107
"//python/private/pypi:config_settings_bzl",
107108
"//python/private/pypi:pkg_aliases_bzl",

python/private/BUILD.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ bzl_library(
9292
],
9393
)
9494

95+
bzl_library(
96+
name = "rule_builders_bzl",
97+
srcs = ["rule_builders.bzl"],
98+
deps = [
99+
":builders_bzl",
100+
"@bazel_skylib//lib:types",
101+
],
102+
)
103+
95104
bzl_library(
96105
name = "bzlmod_enabled_bzl",
97106
srcs = ["bzlmod_enabled.bzl"],
@@ -283,6 +292,7 @@ bzl_library(
283292
deps = [
284293
":attributes_bzl",
285294
":py_executable_bzl",
295+
":rule_builders_bzl",
286296
":semantics_bzl",
287297
"@bazel_skylib//lib:dicts",
288298
],
@@ -410,6 +420,7 @@ bzl_library(
410420
":flags_bzl",
411421
":py_cc_link_params_info_bzl",
412422
":py_internal_bzl",
423+
":rule_builders_bzl",
413424
":toolchain_types_bzl",
414425
"@bazel_skylib//lib:dicts",
415426
"@bazel_skylib//rules:common_settings",
@@ -475,6 +486,7 @@ bzl_library(
475486
":py_internal_bzl",
476487
":py_runtime_info_bzl",
477488
":reexports_bzl",
489+
":rule_builders_bzl",
478490
":util_bzl",
479491
"@bazel_skylib//lib:dicts",
480492
"@bazel_skylib//lib:paths",
@@ -515,6 +527,7 @@ bzl_library(
515527
":attributes_bzl",
516528
":common_bzl",
517529
":py_executable_bzl",
530+
":rule_builders_bzl",
518531
":semantics_bzl",
519532
"@bazel_skylib//lib:dicts",
520533
],

python/private/py_executable.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ def create_executable_rule_builder(implementation, **kwargs):
17601760
TOOLCHAIN_TYPE,
17611761
config_common.toolchain_type(EXEC_TOOLS_TOOLCHAIN_TYPE, mandatory = False),
17621762
] + _CC_TOOLCHAINS,
1763-
cfg = rule_builders.RuleCfgBuilder(
1763+
cfg = dict(
17641764
implementation = _transition_executable_impl,
17651765
inputs = [_PYTHON_VERSION_FLAG],
17661766
outputs = [_PYTHON_VERSION_FLAG],

0 commit comments

Comments
 (0)