Installing xosapi in the virtualenv
Change-Id: I8bb12cc1c1039b90b106eb298d0c42fd2448689d
diff --git a/scripts/setup_venv.sh b/scripts/setup_venv.sh
index a8d620d..9a8ef07 100644
--- a/scripts/setup_venv.sh
+++ b/scripts/setup_venv.sh
@@ -26,7 +26,14 @@
if \
pip install cryptography --global-option=build_ext --global-option="-L/usr/local/opt/openssl/lib" --global-option="-I/usr/local/opt/openssl/include" && \
pip install -r $REQUIREMENTS && \
-cd $BASEDIR/lib/xos-config; python setup.py install
+cd $BASEDIR/lib/xos-config; python setup.py install && \
+#install xos-client
+cp -R $BASEDIR/containers/xos/tmp.chameleon $BASEDIR/xos/xos_client/xosapi/chameleon && \
+cd $BASEDIR/xos/xos_client/xosapi/chameleon/protos; VOLTHA_BASE=anything make && \
+cd $BASEDIR/xos/xos_client; python setup.py install && \
+chmod 777 $BASEDIR/venv-xos/lib/python2.7/site-packages/xosapi/chameleon/protoc_plugins/gw_gen.py && \
+chmod 777 $BASEDIR/venv-xos/lib/python2.7/site-packages/xosapi/chameleon/protoc_plugins/swagger_gen.py
+
then
echo "Requirements installed."
echo "Virtualenv ready"