Attempt to solve inconsistent results when using genmypy cmake hooks in catkin workspace #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey there, thanks for the rospypi effort in general!
I attempted to use this in my ROS workspaces but had very inconsistent results.
I first thought that it was because the generation of the module files were dependant on the message/services pyi files being generated. While it helped a bit I still couldn't have reproducible builds.
Looking a little bit into it, it looks like the generation of the init.pyi files is dependant on already having a proper init.py file fully generated for the module. Is that a correct assumption ?
If so by using the changes in this PR I succeeded to have reproducible and more complete init.pyi files.
The PR basically introduced a dependency between genpy finishing generating message and module files for the genmypy file generation to kick in.
How I tested this:
Using current master:
Using this PR: