Skip to content

Fix non merge install#13

Open
jprestwo wants to merge 6 commits intomasterfrom
fix-non-merge-install
Open

Fix non merge install#13
jprestwo wants to merge 6 commits intomasterfrom
fix-non-merge-install

Conversation

@jprestwo
Copy link
Collaborator

@jprestwo jprestwo commented Mar 4, 2026

No description provided.

Ignore files may be sitting at the top level directory, which
prevents the search from coming up with anything. In addition a
shortcut was added to check for the package much faster than
iterating the entire install tree.
The venv folder was getting placed at the root install folder which
basically causes every package in the workspace to overwrite the venv
of other packages, last package wins...
@jprestwo
Copy link
Collaborator Author

jprestwo commented Mar 4, 2026

This has been my pending branch for per package builds as I notice issues. Its fixing two things currently:

  • The logic assumed that the install/src folders would be of a certain folder structure (i.e. same level), but this is of course not always the case depending on how you build/configure you're workspace
  • The venv was being installed at the root distro level (e.g. under /opt/locusrobotics/hotdog/dev/ros2/venv) which causes conflicts with packages

The first is fixed by requiring a source directory be passed to the venv tooling which comes from either:

  • The CMAKE_CURRENT_SOURCE_DIR env var
  • The path of setup.py (for pure python packages)

I'm tempted to remove much of the stuff in find_in_workspaces in addition to this, because its not a reliable or sane way of finding source files for a package. Passing the source directory seems like the cleanest way to do this.

jprestwo added 2 commits March 4, 2026 14:41
By passing the source directory as well as using the proper ament
API to find the package prefix, searching the env vars with assumed
paths isn't reliable or useful anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants