File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 13
13
system_dir = os .getenv ("TUE_SYSTEM_DIR" )
14
14
packages = (f .path for f in os .scandir (os .path .join (system_dir , "src" )) if f .is_dir ())
15
15
16
- install_build_pkgs = set ()
17
- build_pkgs = set ()
16
+ install_build_pkgs = set () # All packages that need to be build and require all deps to be installed
17
+ build_pkgs = set () # All packages that need to be build
18
18
19
19
for pkg_path in packages :
20
20
pkg = os .path .split (pkg_path )[- 1 ]
21
+
22
+ # Messages need to build and require there depencies
21
23
for msg_type in ["action" , "msg" , "srv" ]:
22
24
if os .path .isdir (os .path .join (pkg_path , msg_type )):
23
25
install_build_pkgs .add (pkg )
24
26
break
25
27
28
+ # Pkg with python modules need to build to be added to PYTHONPATH
26
29
if os .path .isfile (os .path .join (pkg_path , "setup.py" )):
27
30
catkin_package = catkin_pkg .package .parse_package (
28
31
os .path .join (pkg_path , catkin_pkg .package .PACKAGE_MANIFEST_FILENAME )
29
32
)
33
+ # If cpp code in pkg, deps need to be installed
30
34
for dep in catkin_package .build_depends :
31
35
if "cpp" in dep .name : # Might be replaced by a better check to determine their is cpp code in this pkg
32
36
install_build_pkgs .add (pkg )
You can’t perform that action at this time.
0 commit comments