-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
38 lines (34 loc) · 932 Bytes
/
MODULE.bazel
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
module(
name = "mujoco-mjx-test",
version = "0.0.0",
)
bazel_dep(name = "rules_python", version = "0.36.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.11")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.whl_mods(
hub_name = "whl_mods",
whl_name = "mujoco",
data_exclude_glob = [
"site-packages/mujoco/MuJoCo (mjpython).app/**/*",
],
)
use_repo(pip, "whl_mods")
pip.parse(
download_only = True,
hub_name = "pypi",
python_version = "3.11",
requirements_lock = "//:requirements.txt",
whl_modifications = {
"@whl_mods//:mujoco.json": "mujoco",
}
)
pip.override(
# file = "@pypi//mujoco:whl",
file = "mujoco-3.2.3-cp311-cp311-macosx_11_0_arm64.whl",
patches = [
"//:mujoco-fix-namespace.patch",
],
patch_strip = 0,
)
use_repo(pip, "pypi")