<#17702 Custom dependency parser for python> New d...
# github-notifications
q
#17702 Custom dependency parser for python New discussion created by dbari Discussion started in #17691: @dbari wrote:
By the way, I'd prefer to also add an advanced option to
python-infer
to allow for custom dependency parsers. I believe this would be helpful in larger codebases where you might want to have custom rules, e.g. local imports in functions can be strong or weak dependencies etc.
Would an option
dependency_parser
(default
None
-> use the pants internal) where one could provide a path to a python script be ok for this, or would you prefer a different naming or a completely different solution?
@happy-kitchen-89482 wrote:
That's a really interesting idea! I'd be open to such an option. The main thing would be that the script has to be completely self-contained (no dependencies outside the stdlib). But that seems like a reasonable constraint, at least initially.
Also relevant, but going in another direction: #17477 (comment) pantsbuild/pants