Let’s say I use an adhoc tool to create a python c...
# general
p
Let’s say I use an adhoc tool to create a python client with the open api generator…. Is there a way I can treat this as a python library?
b
https://www.pantsbuild.org/v2.16/docs/reference-experimental_wrap_as_python_sources to keep it all as transient (and https://github.com/pantsbuild/pants/issues/17926 is relevant, if you want something to follow). Another option that we do for some of our codegen is check it into the repo, by writing using
run_shell_command
, and then load that back as
python_sources
(i.e. to pants, it looks like any old human-written code)... this isn't great, though.