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" {} +