From 55a41acc94c34689f647fa83a61af28bb366d26c Mon Sep 17 00:00:00 2001 From: Pratyush Shukla Date: Wed, 19 Jul 2023 23:17:54 +0530 Subject: [PATCH] Added script to install all extensions and providers --- .gitignore | 3 +++ openbb_sdk/install_all.sh | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 openbb_sdk/install_all.sh diff --git a/.gitignore b/.gitignore index b6414072817..b534e2432fe 100644 --- a/.gitignore +++ b/.gitignore @@ -76,3 +76,6 @@ openbb_sdk/sdk/core/openbb_core/app/static/package/ # lightning logs lightning_logs/ + +# user script to install all extensions and providers +!openbb_sdk/install_all.sh diff --git a/openbb_sdk/install_all.sh b/openbb_sdk/install_all.sh new file mode 100644 index 00000000000..a42c366839a --- /dev/null +++ b/openbb_sdk/install_all.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Finds the current python executable +PYTHON_EXEC=$(which python) + +# Install all openbb extensions and providers +find extensions providers -type f -name "pyproject.toml" -execdir sh -c ' + echo "Installing $(basename "$PWD")..." + "$1" -m pip install -U -e "${PWD}" + if [ $? -ne 0 ]; then + echo "Script terminated!" + exit 1 + fi +' _ "$PYTHON_EXEC" {} +