ICON Subclassing without parsing configure args - #6188
Conversation
e2b1844 to
3470558
Compare
Also don't init the list there, just append
380a51c to
10568ce
Compare
|
hi! but a little off-topic question: why is a subclass of icon actually needed? I was not aware of it |
|
Hi!
Of course I do. I don't get why that question?
Ah, I didn't know this wasn't known! We rely on a subclass at MCH and C2SM since years where we put different variants or behaviours not necessarily suitable for upstreaming. Also for being able to quickly give access to a feature if necessary. Now that ICON is open source, we can probably upstream quite a bit of these to the main ICON recipe. I was hoping to do that in a second stage. |
In order to make extending the ICON package recipe easier, we suggest the following:
EN_DIS_ABLE_FLAGSclass variable.single_args,flagsandconfig_libsto host configure args.set_configure_argsmethod.configure_argsbecomes a small method that concatenate the content of these 3 attributes in the finallist[str].Doing this would greatly improve the subclassing experience of the ICON package recipe like it is done here where parsing of the configure args is necessary. With this PR, we could modify
self.single_argsandself.flagswhere we need, e.g. withor
Also extending
EN_DIS_ABLE_FLAGSwould help by keeping the logic in the parent class.