export DEPLOY_SCENARIO="${DEPLOY_SCENARIO:=k8-multus-plugins}"
echo "Info : Deploy scenario is $DEPLOY_SCENARIO"
+# NOTE (fdegir): we need to install stack specific operating system requirements
+# and python packages before proceeding further
+echo "Info : Install stack operating system requirements listed in stack bindep.txt using $PKG_MGR"
+cd "$STACK_ROOT_DIR"
+# bindep -b exits with non-zero if it identifies a missing package so we disable pipefail
+set +o pipefail
+# shellcheck disable=SC2046 disable=SC2086
+bindep -b &> /dev/null || redirect_cmd ${INSTALLER_CMD} $(bindep -b)
+set -o pipefail
+
+# 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.
+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: