@@ -4,7 +4,7 @@ load("@aspect_bazel_lib//lib:paths.bzl", "BASH_RLOCATION_FUNCTION", "to_rlocatio
4
4
load ("@aspect_bazel_lib//lib:expand_make_vars.bzl" , "expand_locations" , "expand_variables" )
5
5
load ("//py/private:py_library.bzl" , _py_library = "py_library_utils" )
6
6
load ("//py/private:py_semantics.bzl" , _py_semantics = "semantics" )
7
- load ("//py/private/toolchain:types.bzl" , "PY_TOOLCHAIN" , "SH_TOOLCHAIN" , " VENV_TOOLCHAIN" )
7
+ load ("//py/private/toolchain:types.bzl" , "PY_TOOLCHAIN" , "VENV_TOOLCHAIN" )
8
8
9
9
def _dict_to_exports (env ):
10
10
return [
@@ -13,7 +13,6 @@ def _dict_to_exports(env):
13
13
]
14
14
15
15
def _py_binary_rule_impl (ctx ):
16
- sh_toolchain = ctx .toolchains [SH_TOOLCHAIN ]
17
16
venv_toolchain = ctx .toolchains [VENV_TOOLCHAIN ]
18
17
py_toolchain = _py_semantics .resolve_toolchain (ctx )
19
18
@@ -67,7 +66,6 @@ def _py_binary_rule_impl(ctx):
67
66
template = ctx .file ._run_tmpl ,
68
67
output = executable_launcher ,
69
68
substitutions = {
70
- "{{SHELL_BIN}}" : sh_toolchain .path ,
71
69
"{{BASH_RLOCATION_FN}}" : BASH_RLOCATION_FUNCTION ,
72
70
"{{INTERPRETER_FLAGS}}" : " " .join (py_toolchain .flags ),
73
71
"{{VENV_TOOL}}" : to_rlocation_path (ctx , venv_toolchain .bin ),
@@ -158,7 +156,6 @@ py_base = struct(
158
156
implementation = _py_binary_rule_impl ,
159
157
attrs = _attrs ,
160
158
toolchains = [
161
- SH_TOOLCHAIN ,
162
159
PY_TOOLCHAIN ,
163
160
VENV_TOOLCHAIN ,
164
161
],
0 commit comments