-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
38 lines (32 loc) · 858 Bytes
/
BUILD.bazel
File metadata and controls
38 lines (32 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
load("@bazel_tools//tools/python:toolchain.bzl", "py_runtime_pair")
package(default_visibility = ["//visibility:public"])
[filegroup(
name = platform,
srcs = glob([
"common/**",
"%s/bin/*" % platform,
"%s/lib64/*" % platform,
]),
) for platform in ("linux-x86", "darwin")]
py_runtime(
name = "python2",
files = ["linux-x86/bin/py2-cmd"],
interpreter = "linux-x86/bin/py2-cmd",
python_version = "PY2",
)
py_runtime(
name = "python3",
files = ["linux-x86/bin/py3-cmd"],
interpreter = "linux-x86/bin/py3-cmd",
python_version = "PY3",
)
py_runtime_pair(
name = "py_runtime_pair",
py2_runtime = ":python2",
py3_runtime = ":python3",
)
toolchain(
name = "py_toolchain",
toolchain = ":py_runtime_pair",
toolchain_type = "@bazel_tools//tools/python:toolchain_type",
)