[VOL-2833] Reporting total number of instances and current adapter instance during Adapter Registration (needs VOL-2834)
Change-Id: I550696439a167e99c705850bd7fdb23bee8f9069
diff --git a/Makefile b/Makefile
index 5ddfc8f..196da74 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,14 @@
# ignore these directories
.PHONY: test dist
+local-protos:
+ mkdir -p local_imports
+ifdef LOCAL_PROTOS
+ mkdir -p local_imports/voltha-protos/dist
+ rm -f local_imports/voltha-protos/dist/*.tar.gz
+ cp ${LOCAL_PROTOS}/dist/*.tar.gz local_imports/voltha-protos/dist/
+endif
+
dist:
@ echo "Creating python source distribution"
rm -rf dist/
@@ -43,10 +51,14 @@
VENVDIR := venv-pyvoltha
-venv:
+venv: local-protos
virtualenv --python=python3.6 ${VENVDIR};\
source ./${VENVDIR}/bin/activate ; set -u ;\
pip install -r requirements.txt
+ifdef LOCAL_PROTOS
+ source ./${VENVDIR}/bin/activate ; set -u ;\
+ pip install local_imports/voltha-protos/dist/*.tar.gz
+endif
test:
@ echo "Executing unit tests w/tox"