-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support extra_deps
arg for rosidl
both cc
and py
#345
base: main
Are you sure you want to change the base?
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
This stems from a problem I ran into yesterday, where
python_rules
numpy
wasn't providing thecpp
headers 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_rules
themselves. An example to use this would be -cc: thanks @dta-bdai for this patch :)
This change is