-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathBUILD
More file actions
100 lines (86 loc) · 1.92 KB
/
Copy pathBUILD
File metadata and controls
100 lines (86 loc) · 1.92 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
load("@python_versions//3.11:defs.bzl", py_binary_311 = "py_binary")
load("@python_versions//3.12:defs.bzl", py_binary_312 = "py_binary")
load("@python_versions//3.13:defs.bzl", py_binary_313 = "py_binary")
load("@python_versions//3.14:defs.bzl", py_binary_314 = "py_binary")
load("@rules_python//python:defs.bzl", "py_binary")
load("//envpool:requirements.bzl", "requirement")
config_setting(
name = "linux",
constraint_values = ["@platforms//os:linux"],
)
config_setting(
name = "linux_x86_64",
constraint_values = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)
config_setting(
name = "linux_arm64",
constraint_values = [
"@platforms//cpu:arm64",
"@platforms//os:linux",
],
)
config_setting(
name = "windows",
constraint_values = ["@platforms//os:windows"],
)
_SETUP_SRCS = [
"setup.py",
]
_SETUP_DATA = [
"README.md",
"setup.cfg",
"//envpool",
"//third_party/gfootball:setup_py_data",
]
_SETUP_DEPS = [
requirement("setuptools"),
requirement("wheel"),
]
filegroup(
name = "clang_tidy_config",
srcs = [".clang-tidy"],
)
filegroup(
name = "setup_cfg",
srcs = ["setup.cfg"],
visibility = ["//visibility:public"],
)
py_binary(
name = "setup",
srcs = _SETUP_SRCS,
data = _SETUP_DATA,
main = "setup.py",
python_version = "PY3",
deps = _SETUP_DEPS,
)
py_binary_311(
name = "setup_py311",
srcs = _SETUP_SRCS,
data = _SETUP_DATA,
main = "setup.py",
deps = _SETUP_DEPS,
)
py_binary_312(
name = "setup_py312",
srcs = _SETUP_SRCS,
data = _SETUP_DATA,
main = "setup.py",
deps = _SETUP_DEPS,
)
py_binary_313(
name = "setup_py313",
srcs = _SETUP_SRCS,
data = _SETUP_DATA,
main = "setup.py",
deps = _SETUP_DEPS,
)
py_binary_314(
name = "setup_py314",
srcs = _SETUP_SRCS,
data = _SETUP_DATA,
main = "setup.py",
deps = _SETUP_DEPS,
)