witty-crayon-22786
03/15/2020, 9:27 PMtags
on the targethundreds-father-404
03/15/2020, 9:34 PMpython3_library
is a macro that converts to python_library
? Either way, we can very easily support it via extensible fields. It’s only a question of whether it’s less code for you to write a macro or to write a new target type :)witty-crayon-22786
03/15/2020, 9:36 PMAh, soyes: just a macro that passes theis a macro that converts topython3_library
?python_library
compatibility
argument.I guess what I’m more confused by is context_aware_factories and objects in BuildFileAlias? Are those within scope for the target API?objects are literally just function or contructor calls... no need to change them (anytime) i don't think. context_aware_factories get a "parse_context" and can then create one or more objects using it. they do not need changes with regard to the Target API, but they will need changes when we change macros in https://github.com/pantsbuild/pants/issues/7022 (they are the canonical example of a macro).
hundreds-father-404
03/15/2020, 9:59 PM