-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathMODULE.bazel
More file actions
101 lines (84 loc) · 3.29 KB
/
Copy pathMODULE.bazel
File metadata and controls
101 lines (84 loc) · 3.29 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
101
module(
name = "deepmind_lab2d",
repo_name = "org_deepmind_lab2d",
)
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.25")
bazel_dep(name = "rules_pkg", version = "1.3.0")
bazel_dep(name = "rules_python", version = "2.3.4")
bazel_dep(name = "abseil-cpp", version = "20260526.0")
bazel_dep(name = "abseil-py", version = "2.4.0")
bazel_dep(name = "apple_support", version = "2.9.0")
bazel_dep(name = "pybind11_bazel", version = "3.0.1")
bazel_dep(name = "google_benchmark", version = "1.9.5")
bazel_dep(name = "googletest", version = "1.18.0.bcr.1")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "eigen", version = "5.0.1.bcr.2")
bazel_dep(name = "libpng", version = "1.6.58")
# Python rules: disable legacy "implicit __init__.py files"
rules_python_config = use_extension("@rules_python//python/extensions:config.bzl", "config")
rules_python_config.explicit_init_py(default = True)
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "lua5_1_archive",
build_file = "@//bazel:lua5_1.BUILD",
sha256 = "2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333",
strip_prefix = "lua-5.1.5/src",
urls = [
"https://mirror.bazel.build/www.lua.org/ftp/lua-5.1.5.tar.gz",
"https://www.lua.org/ftp/lua-5.1.5.tar.gz",
],
)
http_archive(
name = "lua5_2_archive",
build_file = "@//bazel:lua5_2.BUILD",
strip_prefix = "lua-5.2.4/src",
urls = [
"https://mirror.bazel.build/www.lua.org/ftp/lua-5.2.4.tar.gz",
"https://www.lua.org/ftp/lua-5.2.4.tar.gz",
],
)
LJ_VER = "f0ff869bc2fffa17bb765c4c773457578da125a9"
http_archive(
name = "luajit_archive",
build_file = "@//bazel:luajit.BUILD",
strip_prefix = "LuaJIT-{}".format(LJ_VER),
urls = ["https://github.com/LuaJIT/LuaJIT/archive/{}.tar.gz".format(LJ_VER)],
)
http_archive(
name = "dm_env_archive",
build_file = "@//bazel:dm_env.BUILD",
integrity = "sha256-ZOYjYvWw8n7czFS52aQfRQQ2vlnPGETo/nT5NO2jWCU=",
strip_prefix = "dm_env-3c6844db2aa4ed5994b2c45dbfd9f31ad948fbb8",
urls = ["https://github.com/deepmind/dm_env/archive/3c6844db2aa4ed5994b2c45dbfd9f31ad948fbb8.zip"],
)
http_archive(
name = "tree_archive",
build_file = "@//bazel:tree.BUILD",
integrity = "sha256-2Jy0PzRltH3Sl6E1mr7/liKvAcdPCVNAvFwd/oWld2A=",
strip_prefix = "tree-master",
urls = ["https://github.com/deepmind/tree/archive/master.zip"],
)
################################
### Local Python toolchain setup
################################
local_runtime_repo = use_repo_rule("@rules_python//python/local_toolchains:repos.bzl", "local_runtime_repo")
local_runtime_toolchains_repo = use_repo_rule("@rules_python//python/local_toolchains:repos.bzl", "local_runtime_toolchains_repo")
local_runtime_repo(
name = "local_python3",
dev_dependency = True,
interpreter_path = "python3",
on_failure = "fail",
)
local_runtime_toolchains_repo(
name = "local_toolchains",
dev_dependency = True,
runtimes = ["local_python3"],
)
register_toolchains(
"@local_toolchains//:all",
dev_dependency = True,
)
python_repo = use_repo_rule("@@//:python_system.bzl", "python_repo")
python_repo(name = "python_system")