Langgraph deployment tools only support codebases ...
# general
r
Langgraph deployment tools only support codebases with a
requirements.txt
file or those using Poetry. I need to use Python protobufs, but Pants doesn’t materialize them by default, which is causing issues. Is there a way to generate a codebase with pre-generated Python protobufs included?
I can always do
protoc ...
but then I have to delete the output . I am looking for something automatic.
s
r
This does not materialize the py generated code on demand. It does it in a sandbox when one does pants test or run. In my case I need to have everything generated for the deployment to work. Maybe I missed something?
g
I think this is a bit too niche for Slack, and we probably need more background to help out. I think starting a discussion would be good here, and explain exactly what has to happen for langgraph to work - why does it need a requirements.txt, and how does that relate to protobuf? What does "deploy" mean here? etc. Then we can try to map those to Pants concepts and see how these two tools work together.
h
FWIW the
export
goal can spit out generated code into
dist/
r
Is there a way to customize the output path? I couldn't find such option.
@gorgeous-winter-99296 thanks for the tip. I started a new thread with more information.