forked from mvukov/rules_ros2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
53 lines (37 loc) · 1.36 KB
/
WORKSPACE
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
workspace(name = "com_github_mvukov_rules_ros2")
load("//repositories:repositories.bzl", "ros2_repositories", "ros2_workspace_repositories")
ros2_workspace_repositories()
ros2_repositories()
load("//repositories:deps.bzl", "ros2_deps")
ros2_deps()
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
py_repositories()
python_register_toolchains(
name = "rules_ros2_python",
python_version = "3.10",
)
load("@rules_python//python:pip.bzl", "pip_parse")
load("@rules_ros2_python//:defs.bzl", python_interpreter_target = "interpreter")
load("//repositories:pip_annotations.bzl", "PIP_ANNOTATIONS")
pip_parse(
name = "rules_ros2_pip_deps",
annotations = PIP_ANNOTATIONS,
python_interpreter_target = python_interpreter_target,
requirements_lock = "@com_github_mvukov_rules_ros2//:requirements_lock.txt",
)
load(
"@rules_ros2_pip_deps//:requirements.bzl",
install_rules_ros2_pip_deps = "install_deps",
)
install_rules_ros2_pip_deps()
# Below are internal deps.
pip_parse(
name = "rules_ros2_resolver_deps",
python_interpreter_target = python_interpreter_target,
requirements_lock = "//repositories/private:resolver_requirements_lock.txt",
)
load(
"@rules_ros2_resolver_deps//:requirements.bzl",
install_rules_ros2_resolver_deps = "install_deps",
)
install_rules_ros2_resolver_deps()