Added script to install all extensions and providers

This commit is contained in:
Pratyush Shukla
2023-07-19 23:17:54 +05:30
parent d7b01f2102
commit 55a41acc94
2 changed files with 17 additions and 0 deletions

3
.gitignore vendored
View File

@@ -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

14
openbb_sdk/install_all.sh vendored Normal file
View File

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