Distribute dependencies

This change moves the dependencies required for ONAP stack to
stack itself, making sure we deal with the dependencies required for
it and no other stack.

This is achieved by
- moving operating system dependencies from engine core bindep.txt into
stack bindep.txt
- moving python dependencies from engine core requirements.txt into
stack requirements.txt
- taking setup-stack.sh script in use so engine core executes this script
from the stack

An additional benefit of this change is that ONAP stack does not require
to expect engine python dependencies available in ENGINE_WORKSPACE since
those dependencies are packaged together with stack python dependencies
into ONAP package. This makes ONAP to be independent from Kubernetes
except the inventory.

When it comes to inventory, the parameter to engine, -p, could be adapted
to handle inventory files as well since we already handle regular PDF and
heat environment files using this parameter.

Depends-On: I713d0e333bc4a01c92e6aa6ae1a4e6f3d9efe2ad
Change-Id: Ic0673ddf229ea63b90a0d9aa2520073a03a271b0
diff --git a/setup-stack.sh b/setup-stack.sh
index 2e4189f..40572af 100755
--- a/setup-stack.sh
+++ b/setup-stack.sh
@@ -33,4 +33,12 @@
 export DEPLOY_SCENARIO="${DEPLOY_SCENARIO:=onap-sdc-nofeature}"
 echo "Info  : Deploy scenario is $DEPLOY_SCENARIO"
 
+# TODO (fdegir): installation of pip packages fail due to not being able to find setuptools
+# as build dependency so we do --no-use-pep517 as workaround.
+# This needs to be revisited later on.
+cd "$STACK_ROOT_DIR"
+echo "Info  : Install stack python packages listed in stack requirements.txt using pip"
+echo "        Please note that this may take some time"
+redirect_cmd pip install --no-use-pep517 --force-reinstall -r requirements.txt
+
 # vim: set ts=2 sw=2 expandtab: