Support extra_deps arg for rosidl both cc and py - #345
Conversation
Hm... I'm a bit suspicious that either Do you know if you have system-wide installed |
|
Also, can you reproduce this error in |
EricCousineau-TRI
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @ali-bdai)
a discussion (no related file):
nit The usage of extra_deps may be ambiguous w.r.t. what language this is intended for; you may get mixed providers (e.g. cc going where py should be or vice-versa).
If this approach is indeed needed, then the language type should be qualified.
|
Absolutely, that's why we wanted to push stuff upstream as well. Currently this works for us "as it is" as a temporary solution. |
As primary the maintainer of TRI's starlark rule set, I'll advocate that Certainly root causing and fixing the numpy thing the "right" way is ideal, but having an escape hatch is important for improving iteration speed and allowing for hotfixes during emergencies.
I agree with this part. It should be named |
|
FYI Eric shouldn't be a reviewer anymore. Either @IanTheEngineer or @calderpg-tri or someone they delegate should take this over. Or if we're not going to accept it, then explain and close it. |
This stems from a problem I ran into yesterday, where
python_rulesnumpywasn't providing thecppheaders and I would end up in a following scenario -And unsurprisingly -
Via this patch users would be able to provide the cc dependency as an extra. I don't think it's a perfect solution, but it is a solution that doesn't involve touching
python_rulesthemselves. An example to use this would be -cc: thanks @dta-bdai for this patch :)
This change is