From 588779e3a4c942627545972c25715caa2d708abf Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 5 Nov 2018 20:53:56 -0300 Subject: [PATCH] makefile for using types repo --- lbrynet/schema/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lbrynet/schema/Makefile b/lbrynet/schema/Makefile index 8f7e59b5f..461579cfe 100644 --- a/lbrynet/schema/Makefile +++ b/lbrynet/schema/Makefile @@ -1,2 +1,6 @@ build: - cd ../../ && ~/bin/protoc --python_out=. lbrynet/schema/proto/*.proto + rm proto/* -rf + cd proto && protoc --python_out=. -I ../../../../types/proto/ ../../../../types/proto/*.proto + sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i proto/*.py + touch proto/__init__.py +