I'm adding `python_distribution` targets now so I ...
# plugins
p
I'm adding
python_distribution
targets now so I can generate wheels. Previously I had defined
entry_points
on another target from one of my custom pants plugins. Then I use a
SetupKwargsRequest
to add those
entry_points
to the
python_distribution
. Is it okay to inject
entry_points
via
SetupKwargsRequest
? Or will that bypass any dependency inferrence logic that uses entry_points?
1
b
My favorite answer: try it and find out? 🙃
p
Yeah. Just did. Didn't work. Now to figure out why, and maybe find a way to inject those dependencies on the python_distribution as well...
b
Maybe the dep injection should happen after kwarg injection. I haven't looked at the code to know 🤔
p
Ah. I think I can add a rule that works with
PythonDistributionDependenciesField
.
That did it. I had to wire up the inference because dependency inference is an entirely different branch of rules than the setup_kwargs rule.