I have a codegen rule that outputs 3 python files....
# plugins
a
I have a codegen rule that outputs 3 python files. How do I tell the python dependency infer-rer-rer-rrerrrerr that this rule generates python files to be inferred?
actually, I think I know what to do... Just cant work out how to go from a
Dependencies
field to a
PythonSourceTarget
oh! no! got it
you need to make a FirstPartyPythonMappingImpl !
❤️ 1
b
So one unfortunate thing is you can't generate targets. I think what I did for this was basically copy the existing dependency inference code 🤷‍♂️
h
you need to make a FirstPartyPythonMappingImpl !
exactly 🙂 the Thrift and Protobuf rules in pantsbuilds/pants are different enough that I think they'll be good examples