File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
tests/integration/local_toolchains Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ local_repository(
99
1010load ("@rules_python//python:repositories.bzl" , "py_repositories" )
1111
12- py_repositories ()
12+ py_repositories (
13+ transition_settings = [
14+ "@//:py" ,
15+ ],
16+ )
1317
1418load ("@rules_python//python/local_toolchains:repos.bzl" , "local_runtime_repo" , "local_runtime_toolchains_repo" )
1519
@@ -46,7 +50,26 @@ local_runtime_repo(
4650# Step 2: Create toolchains for the runtimes
4751local_runtime_toolchains_repo (
4852 name = "local_toolchains" ,
49- runtimes = ["local_python3" ],
53+ runtimes = [
54+ "local_python3" ,
55+ "repo_python3" ,
56+ ],
57+ target_compatible_with = {
58+ "local_python3" : [
59+ "HOST_CONSTRAINTS" ,
60+ ],
61+ "repo_python3" : [
62+ "HOST_CONSTRAINTS" ,
63+ ],
64+ },
65+ target_settings = {
66+ "local_python3" : [
67+ "@//:is_py_local" ,
68+ ],
69+ "repo_python3" : [
70+ "@//:is_py_repo" ,
71+ ],
72+ },
5073)
5174
5275# Step 3: Register the toolchains
You can’t perform that action at this time.
0 commit comments