From 9c48a0532bf4a557ad987c44026ef8a2f14db006 Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Thu, 6 Apr 2023 10:00:33 +1000 Subject: [PATCH] fix: ensure the proto/nitric folder is a module --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index b56368e..e349a19 100644 --- a/makefile +++ b/makefile @@ -30,6 +30,9 @@ grpc-client: install download @echo Generating Proto Sources @echo $(OUTPUT) @mkdir -p $(OUTPUT) + # protoc doesn't create the __init__.py for the nitric module, so we need to create it. + @mkdir -p $(OUTPUT)/nitric/ + @touch $(OUTPUT)/nitric/__init.py__ @python3 -m grpc_tools.protoc -I $(CONTRACTS) --python_betterproto_out=$(OUTPUT) ./contracts/proto/*/*/*.proto