VOL-1460 Updated to use a voltha-protos repo as source for protos
Change-Id: I6e88fb3bb16f91941abaad2f0a810ebc5aa29f36
diff --git a/python/Makefile b/python/Makefile
index 3ac6936..31846fc 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -78,6 +78,8 @@
ifdef LOCAL_PYVOLTHA
mkdir -p pyvoltha/dist
cp ../../pyvoltha/dist/*.tar.gz pyvoltha/dist/
+ mkdir -p voltha-protos/dist
+ cp ../../voltha-protos/dist/*.tar.gz voltha-protos/dist/
docker build $(DOCKER_BUILD_ARGS) -t ${REGISTRY}${REPOSITORY}voltha-openolt-adapter-base:${TAG} -f docker/Dockerfile.base_local .
else
docker build $(DOCKER_BUILD_ARGS) -t ${REGISTRY}${REPOSITORY}voltha-openolt-adapter-base:${TAG} -f docker/Dockerfile.base .
@@ -103,6 +105,7 @@
clean:
rm -rf pyvoltha
+ rm -rf voltha-protos
find . -name '*.pyc' | xargs rm -f
distclean: clean
@@ -130,8 +133,11 @@
ifdef LOCAL_PYVOLTHA
mkdir -p pyvoltha/dist
cp ../../pyvoltha/dist/*.tar.gz pyvoltha/dist/
+ mkdir -p voltha-protos/dist
+ cp ../../voltha-protos/dist/*.tar.gz voltha-protos/dist/
@ . ${VENVDIR}/bin/activate && \
- pip install pyvoltha/dist/*.tar.gz
+ pip install pyvoltha/dist/*.tar.gz \
+ pip install voltha-protos/dist/*.tar.gz
endif
# end file