Skip to content

Commit 3ca99e5

Browse files
committed
add build all mode, fix skipping of deps with - or _
1 parent fad2bd4 commit 3ca99e5

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ packages_select_by_deps:
3737
# patch directory
3838
patch_dir: ./patch
3939
```
40+
41+
### Special modes
42+
43+
#### Build all
44+
45+
To generate recipes for all available ROS packages you can add `build_all: true` to your vinca.yaml. In that case, otherwise selected packages will be ignored and vinca will generate recipes for all available packages. To try to see how far one can go, it's recommended to run vinca and boa like this:
46+
47+
```
48+
vinca --multiple # to generate a `./recipes` folder with multiple subfolders
49+
boa build --skip-existing=fast --continue-on-failure -m conda_build_config.yaml ./recipes
50+
```

vinca/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ def get_selected_packages(distro, vinca_conf):
551551
selected_packages.remove(i)
552552
selected_packages.add(i.replace("_", "-"))
553553
skipped_packages = skipped_packages.union(pkgs)
554-
555554
result = selected_packages.difference(skipped_packages)
556555
result = sorted(list(result))
557556
return result

vinca/resolve.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ def resolve_pkgname(pkg_shortname, vinca_conf, distro, is_rundep=False):
5656
if (
5757
"packages_remove_from_deps" in vinca_conf
5858
and vinca_conf["packages_remove_from_deps"] is not None
59-
and pkg_shortname.replace("_", "-")
60-
not in vinca_conf["packages_remove_from_deps"]
59+
and not (
60+
pkg_shortname.replace("_", "-") in vinca_conf["packages_remove_from_deps"] or
61+
pkg_shortname in vinca_conf["packages_remove_from_deps"])
6162
):
6263
return [
6364
"ros-%s-%s"

0 commit comments

Comments
 (0)