Skip to content

Commit bcb7d09

Browse files
[build] Pick initial python interpreter based on OS
1 parent fcb0709 commit bcb7d09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎BUILD.bazel

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ load("@rules_python//python:defs.bzl", "py_runtime_pair")
1515

1616
py_runtime(
1717
name = "py3_runtime",
18-
interpreter_path = "/usr/bin/python3",
18+
interpreter_path = select({
19+
"@platforms//os:macos": "/usr/bin/python3",
20+
"@platforms//os:linux": "/usr/bin/python",
21+
"@platforms//os:windows": "python",
22+
}),
1923
python_version = "PY3",
2024
stub_shebang = "#!/usr/bin/python3",
2125
)

0 commit comments

Comments
 (0)