[CORD-1440] Moving the generative toolchain in a library

Change-Id: Ifa8e8f930ac34e1f8952099b7e34842a52f4664d
diff --git a/scripts/setup_venv.sh b/scripts/setup_venv.sh
index 9a8ef07..479c374 100644
--- a/scripts/setup_venv.sh
+++ b/scripts/setup_venv.sh
@@ -27,13 +27,14 @@
 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 && \
+
 #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
-
+chmod 777 $BASEDIR/venv-xos/lib/python2.7/site-packages/xosapi/chameleon/protoc_plugins/swagger_gen.py && \
+cd $BASEDIR/lib/xos-genx; python setup.py install
   then
     echo "Requirements installed."
     echo "Virtualenv ready"