Skip to content

Commit 92f7b9a

Browse files
committed
simplify the toolchain target_settings
1 parent 15abbd2 commit 92f7b9a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

python/private/py_toolchain_suite.bzl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,7 @@ def py_toolchain_suite(*, prefix, user_repository_name, python_version, set_pyth
8888
visibility = ["//visibility:private"],
8989
)
9090

91-
if set_python_version_constraint == "True":
92-
target_settings = [name]
93-
else:
94-
target_settings = select({
95-
name: [name],
96-
"//conditions:default": [],
97-
})
91+
target_settings = [name]
9892
else:
9993
fail(("Invalid set_python_version_constraint value: got {} {}, wanted " +
10094
"either the string 'True' or the string 'False'; " +

0 commit comments

Comments
 (0)